PyQt5中怎么显示消息框
-
PyQt5中怎么显示消息框
在PyQt5中显示消息框可以使用QMessageBox类。以下是一个简单的例子:import sysfrom PyQt5.QtWidgets import QApplication, QWidget, QMessageBoxclass Example(QWidget):def __init__(self):super().__init__()self.initUI()def initUI(se
在PyQt5中显示消息框可以使用QMessageBox类。以下是一个简单的例子:import sysfrom PyQt5.QtWidgets import QApplication, QWidget, QMessageBoxclass Example(QWidget):def __init__(self):super().__init__()self.initUI()def initUI(se