摘要: 参考https://www.cnblogs.com/jgg54335/p/14904853.html 实例一: import sys from PyQt5.QtWidgets import QApplication, QWidget from PyQt5.QtGui import QPainter, 阅读全文
posted @ 2024-06-13 17:50 星空28 阅读(13) 评论(0) 推荐(0) 编辑
摘要: import sys from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * class FontDialogdemo(QWidget): def __init__(self, parent 阅读全文
posted @ 2024-06-13 17:25 星空28 阅读(5) 评论(0) 推荐(0) 编辑
摘要: import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class InputdialogDemo(QWidget): def __init__(self, paren 阅读全文
posted @ 2024-06-13 17:18 星空28 阅读(6) 评论(0) 推荐(0) 编辑
摘要: import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class QMessageBoxDemo(QWidget): def __init__(self): supe 阅读全文
posted @ 2024-06-13 15:49 星空28 阅读(24) 评论(0) 推荐(0) 编辑
摘要: import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class QDialogDemo(QMainWindow): def __init__(self): supe 阅读全文
posted @ 2024-06-13 15:25 星空28 阅读(4) 评论(0) 推荐(0) 编辑
摘要: from PyQt5.QtWidgets import QApplication, QWidget, QStackedLayout, QVBoxLayout from PyQt5.QtWidgets import QPushButton, QComboBox, QSizePolicy import 阅读全文
posted @ 2024-06-13 09:23 星空28 阅读(74) 评论(0) 推荐(0) 编辑
摘要: import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * class spindemo(QWidget): def __init__(self, parent=None) 阅读全文
posted @ 2024-06-13 07:05 星空28 阅读(9) 评论(0) 推荐(0) 编辑
摘要: import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class QSliderDemo(QWidget): def __init__(self): super(QS 阅读全文
posted @ 2024-06-13 07:00 星空28 阅读(32) 评论(0) 推荐(0) 编辑
摘要: PyQtGraph绘图参考 http://v3.byhy.net/tut/py/gui/pyqtgraph-1/ 阅读全文
posted @ 2024-06-13 06:52 星空28 阅读(8) 评论(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:45 星空28 阅读(31) 评论(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:41 星空28 阅读(53) 评论(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 阅读(30) 评论(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 阅读(145) 评论(0) 推荐(0) 编辑