上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 二维表 数据源 需要创建QTableView实例和一个数据源Model,然后将两者关联 MVC: Model + Viewer + Controller MVC的目的是将后端的数据和前端页面的耦合度降低 import sys from PyQt5 import QtPrintSupport, QtG 阅读全文
posted @ 2024-06-14 11:02 星空28 阅读(60) 评论(0) 推荐(0)
摘要: import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5 import QtPrintSupport, QtGui from PyQt5.QtPri 阅读全文
posted @ 2024-06-14 10:53 星空28 阅读(61) 评论(0) 推荐(0)
摘要: 参考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 阅读(79) 评论(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 阅读(39) 评论(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 阅读(39) 评论(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 阅读(71) 评论(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 阅读(41) 评论(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 阅读(177) 评论(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 阅读(57) 评论(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:01 星空28 阅读(121) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页