上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 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)
摘要: 窗口类型: QMainWindow:可以包含菜单栏、工具栏、状态栏、标题栏 QWidget:不确定窗口的用途,就使用QWidget QDialog: 是对话窗口的基类,没有菜单栏、工具栏、状态栏 from PyQt5.QtWidgets import QWidget, QDesktopWidget, 阅读全文
posted @ 2024-06-07 16:47 星空28 阅读(39) 评论(0) 推荐(0)
摘要: """ 菜单栏 """ from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys import cv2 class ButtonPanel(QtWidgets.QWidget): def __init__(self, 阅读全文
posted @ 2024-06-07 15:04 星空28 阅读(73) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 下一页