pyqt QMessageBox自动关闭



                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_()

你可能感兴趣的:(pyqt)