摘要:
1、重写closeEvent() def closeEvent(self, event): reply = QtWidgets.QMessageBox.question(self, 'Message', '你确认要退出么?', QtWidgets.QMessageBox.Yes | QtWidget 阅读全文
摘要:
窗口闪退 from PyQt5.QtWidgets import * import sys class Main(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("主窗口") button = QPus 阅读全文