def func(self):
self.send_success_tip()
# 发送成功提示
def send_success_tip(self):
self.timer = QTimer(parent=None)
self.timer.timeout.connect(self.display_func)
self.cnt = 0
self.timer.start(100)
def display_func(self):
self.cnt += 1
self.label_26.setText('成功!') # font-weight:6005 11pt "微软雅黑";
if self.cnt == 15:
self.label_26.setText('')
self.timer.stop()
PyQt5中界面上label控件限时显示信息
于 2024-04-15 23:15:27 首次发布