关键词 PyQt5 pyqt5 警告框 代码 #警告框 def messageDialog(self): msg_box = QMessageBox(QMessageBox.Warning, 'Warning', 'No picture selected!') msg_box.exec_() 演示效果 参考文章 PyQt5 弹出警告框