随笔分类 -  Pyqt5

摘要:```python class Main(QWidget, Ui_Form): def __init__(self): super(Main, self).__init__() self.setupUi(self) QTimer.singleShot(0, self.thread_check) # 阅读全文
posted @ 2023-08-13 14:52 PythonNew_Mr.Wang 阅读(523) 评论(0) 推荐(0) 编辑
摘要:```python # 线程函数 class WorkerThread(QThread): resultReady = pyqtSignal(object) def __init__(self, func, *args, **kwargs): super().__init__() self.func 阅读全文
posted @ 2023-08-13 14:17 PythonNew_Mr.Wang 阅读(131) 评论(0) 推荐(0) 编辑
摘要:for i in range(1,5): time.sleep(1) print("等待{}".format(1)) QApplication.processEvents() # 动态添加 self.QTextEdit.append("SSSS") 阅读全文
posted @ 2022-01-10 15:26 PythonNew_Mr.Wang 阅读(687) 评论(0) 推荐(0) 编辑
摘要:# user_list = ['qing58c9,abc123456', 'uffqqcq2,584520'] for row, row_data in enumerate(user_list): print(row_data) # qing58c9,abc123456 print(row) # 行 阅读全文
posted @ 2022-01-10 13:09 PythonNew_Mr.Wang 阅读(351) 评论(0) 推荐(0) 编辑
摘要:import os import re import sys from PyQt5 import QtWidgets, QtCore QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling) # 不同分辨率下 自适 阅读全文
posted @ 2021-12-31 13:33 PythonNew_Mr.Wang 阅读(144) 评论(0) 推荐(0) 编辑
摘要:1:下载pip install PyQt5 -i https://pypi.douban.com/simple pip install -i https://pypi.tuna.tsinghua.edu.cn/simple PyQt5-tools 2:汉化包放入qt的安装目录 链接:https:// 阅读全文
posted @ 2021-12-31 13:15 PythonNew_Mr.Wang 阅读(95) 评论(0) 推荐(0) 编辑
摘要:PS:如果你想在2窗口调用1窗口的内部方法,或者在2窗口传递数据给1窗口数据,本片博客可以放心食用 主窗口: class MainWindow(QWidget,Ui_MainFrom): insertSignal = pyqtSignal() # 创建一个信号 pyqtSigal(str,int) 阅读全文
posted @ 2019-12-25 09:17 PythonNew_Mr.Wang 阅读(1503) 评论(0) 推荐(0) 编辑
摘要:1:动态渲染数据+动态添加控件(按钮,进度条) class MainWindow(QWidget, Ui_MainFrom): def __init__(self): super(MainWindow, self).__init__() self.setupUi(self) # #去掉标题头 # s 阅读全文
posted @ 2019-12-23 13:18 PythonNew_Mr.Wang 阅读(3141) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示