in pyqt5 it needs to be PyQt5.QtWidgets msg=QMessageBox() # create an instance of it msg.setIcon(QMessageBox.Information) # set icon msg.
確定! 回上一頁