合集-PyQt5

摘要:from PyQt5 import QtCore, QtGui import sys import cv2 if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) main_win = QtWidgets.QMainWind 阅读全文
posted @ 2024-06-04 15:32 星空28 阅读(29) 评论(0) 推荐(0) 编辑
摘要:from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys import cv2 if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) ma 阅读全文
posted @ 2024-06-04 15:37 星空28 阅读(10) 评论(0) 推荐(0) 编辑
摘要:图片滚动 import os from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys import cv2 class ButtonPanel(QtWidgets.QWidget): def __init__(se 阅读全文
posted @ 2024-06-04 17:20 星空28 阅读(43) 评论(0) 推荐(0) 编辑
摘要:from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys import cv2 def click_btn1(): print("click button 1") txt_label.setText("我是按钮1点击 阅读全文
posted @ 2024-06-04 15:43 星空28 阅读(24) 评论(0) 推荐(0) 编辑
摘要:from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) main_win = Qt 阅读全文
posted @ 2024-06-04 15:39 星空28 阅读(16) 评论(0) 推荐(0) 编辑
摘要:from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys import cv2 class ButtonPanel(QtWidgets.QWidget): def __init__(self, *args, **kw 阅读全文
posted @ 2024-06-04 15:38 星空28 阅读(48) 评论(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 阅读(14) 评论(0) 推荐(0) 编辑
摘要:窗口类型: QMainWindow:可以包含菜单栏、工具栏、状态栏、标题栏 QWidget:不确定窗口的用途,就使用QWidget QDialog: 是对话窗口的基类,没有菜单栏、工具栏、状态栏 from PyQt5.QtWidgets import QWidget, QDesktopWidget, 阅读全文
posted @ 2024-06-07 16:47 星空28 阅读(19) 评论(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 阅读(12) 评论(0) 推荐(0) 编辑
摘要:import os.path from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys import cv2 class SpinBoxPanel(QtWidgets.QWidget): def __init__(s 阅读全文
posted @ 2024-06-05 12:11 星空28 阅读(45) 评论(0) 推荐(0) 编辑
摘要:""" 复选框 """ import os.path from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys import cv2 class ButtonPanel(QtWidgets.QWidget): def 阅读全文
posted @ 2024-06-05 10:38 星空28 阅读(44) 评论(0) 推荐(0) 编辑
摘要:import os.path from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys import cv2 class ButtonPanel(QtWidgets.QWidget): def __init__(se 阅读全文
posted @ 2024-06-05 09:26 星空28 阅读(18) 评论(0) 推荐(0) 编辑
摘要:from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys import cv2 class TextDemoPanel(QtWidgets.QWidget): def __init__(self, *args, ** 阅读全文
posted @ 2024-06-05 07:06 星空28 阅读(25) 评论(0) 推荐(0) 编辑
摘要:选择文件夹,显示图片 import os from PyQt5 import QtWidgets from PyQt5 import QtCore, QtGui import sys import cv2 class ButtonPanel(QtWidgets.QWidget): def __ini 阅读全文
posted @ 2024-06-04 18:12 星空28 阅读(57) 评论(0) 推荐(0) 编辑
摘要:from PyQt5.QtWidgets import * import pyqtgraph as pg import sys class MainWindow(QWidget): def __init__(self): super().__init__() self.setWindowTitle( 阅读全文
posted @ 2024-06-13 06:37 星空28 阅读(46) 评论(0) 推荐(0) 编辑
摘要:实例1:CPU使用率实时展示 from PyQt5 import QtWidgets,QtCore,QtGui import pyqtgraph as pg import sys import traceback import psutil class MainUi(QtWidgets.QMainW 阅读全文
posted @ 2024-06-13 06:16 星空28 阅读(328) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class WindowMaxMin(QWidget): def __init__(self, *args, * 阅读全文
posted @ 2024-06-11 06:01 星空28 阅读(30) 评论(0) 推荐(0) 编辑
摘要:from PyQt5.QtWidgets import * import sys class BasicQCSS(QWidget): def __init__(self): super().__init__() self.setWindowTitle("QSS样式/子控件选择器") btn1 = Q 阅读全文
posted @ 2024-06-10 15:39 星空28 阅读(28) 评论(0) 推荐(0) 编辑
摘要:from PyQt5.QtWidgets import * import sys class BasicQCSS(QWidget): def __init__(self): super().__init__() self.setWindowTitle("QSS样式") btn1 = QPushBut 阅读全文
posted @ 2024-06-10 15:22 星空28 阅读(23) 评论(0) 推荐(0) 编辑
摘要:import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class Drawing(QWidget): def __init__(self, *args, **kwar 阅读全文
posted @ 2024-06-10 14:31 星空28 阅读(11) 评论(0) 推荐(0) 编辑

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