pyqt QMessageBox自动关闭

xiaoxiao2021-02-28  27



                infoBox = QtGui.QMessageBox() ##Message Box that doesn't run                infoBox.setIcon(QtGui.QMessageBox.Information)                infoBox.setText("保存完成!")                infoBox.setWindowTitle("Information")                infoBox.setStandardButtons(QtGui.QMessageBox.Ok )                infoBox.button(QtGui.QMessageBox.Ok).animateClick(3*1000)       #3秒自动关闭                infoBox.exec_()

转载请注明原文地址: https://www.6miu.com/read-2619550.html

最新回复(0)