上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: 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:41 星空28 阅读(161) 评论(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 阅读(104) 评论(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 阅读(622) 评论(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 阅读(110) 评论(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:40 星空28 阅读(70) 评论(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 阅读(67) 评论(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:32 星空28 阅读(36) 评论(0) 推荐(0)
摘要: import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class WindowPattern(QMainWindow): def __init__(self, *ar 阅读全文
posted @ 2024-06-09 16:03 星空28 阅读(32) 评论(0) 推荐(0)
摘要: 设置窗口控件风格 QApplication.setStyle(...) 窗口可以显示三种风格:['windowsvista', 'Windows', 'Fusion'] import sys from PyQt5.QtCore import * from PyQt5.QtGui import * f 阅读全文
posted @ 2024-06-09 15:03 星空28 阅读(130) 评论(0) 推荐(0)
摘要: 方法一:不使用信号与槽 MultiWin.py文件 """ 多窗口交互--不使用信号与槽 """ import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from Da 阅读全文
posted @ 2024-06-08 17:04 星空28 阅读(144) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页