摘要:
from PyQt5.QtCore import * from PyQt5 import QtCore from PyQt5.QtWidgets import * import sys class OverrideSlot(QMainWindow): def __init__(self): supe 阅读全文
posted @ 2024-06-08 15:46
星空28
阅读(27)
评论(0)
推荐(0)
摘要:
方法一:lambda表达式传递参数 from PyQt5.QtCore import * from PyQt5 import QtCore from PyQt5.QtWidgets import * import sys class LambdaSlotArg(QMainWindow): def _ 阅读全文
posted @ 2024-06-08 15:38
星空28
阅读(91)
评论(0)
推荐(0)
摘要:
方法一: from PyQt5.QtCore import * from PyQt5.QtWidgets import * import sys class AutoSignalSlot(QWidget): def __init__(self): super().__init__() self.se 阅读全文
posted @ 2024-06-08 13:31
星空28
阅读(46)
评论(0)
推荐(0)
摘要:
import time from PyQt5.QtCore import * from PyQt5.QtWidgets import * import sys class BackendThread(QThread): update_date = pyqtSignal(str) def run(se 阅读全文
posted @ 2024-06-08 12:30
星空28
阅读(26)
评论(0)
推荐(0)
摘要:
from PyQt5.QtCore import * from PyQt5.QtWidgets import * import sys class WinSignal(QWidget): # 定义一个信号 button_clicked_signal = pyqtSignal() def __init 阅读全文
posted @ 2024-06-08 11:59
星空28
阅读(45)
评论(0)
推荐(0)
摘要:
··· from PyQt5.QtCore import * class NNSignal(QObject): # 定义一个信号 signal1 = pyqtSignal() # 发送3个参数的信号 signal2 = pyqtSignal(int) signal3 = pyqtSignal() d 阅读全文
posted @ 2024-06-08 09:57
星空28
阅读(13)
评论(0)
推荐(0)
摘要:
··· from PyQt5.QtCore import * class MultiSignal(QObject): # 定义一个信号 signal1 = pyqtSignal() # 发送3个参数的信号 signal2 = pyqtSignal(int) signal3 = pyqtSignal( 阅读全文
posted @ 2024-06-08 06:51
星空28
阅读(32)
评论(0)
推荐(0)
摘要:
from PyQt5.QtCore import * class MyTypeSignal(QObject): # 定义一个信号 sendmsg = pyqtSignal(object) # 发送3个参数的信号 sendmsg1 = pyqtSignal(str, int, int) def run 阅读全文
posted @ 2024-06-08 05:34
星空28
阅读(31)
评论(0)
推荐(0)

浙公网安备 33010602011771号