import sys
from PyQt5.QtWidgets import QApplication,QWidget,QPushButton,QHBoxLayout,QLabel
from PyQt5.QtCore import pyqtSignal, QThread
import time
class ui(QWidget):
def __init__(self):
super().__init__()
wind=QWidget(self)
wind.setWindowTitle('小例子')
wind.resize(300,200)
layou=QHBoxLayout(self)
self.btn = QPushButton('开始线程'
pyqt5多线程更新UI小例子
最新推荐文章于 2025-06-06 16:39:34 发布