对话框定时


self.box = QMessageBox(QMessageBox.Information, "温馨提示", "%s"% txt)
qyes = self.box.addButton(self.tr("确定"), QMessageBox.YesRole).animateClick(1*1000)#1秒自动关闭
self.box.exec_()
posted @ 2018-11-15 03:48  疯狂的骆驼  阅读(201)  评论(0编辑  收藏  举报