create the alert dialog
- from PyQt4.QtGui import *
-
from PyQt4.QtCore import *
-
import sys
-
-
app = QApplication(sys.argv)
-
msg_box = QMessageBox(QMessageBox.Warning, "Alert", "Please configure the baseline!")
-
msg_box.show()
-
app.exec_()
ss
if the alert show when click some button, should show like this:
- msg_box = QMessageBox(QMessageBox.Warning, "Alert", "Please configure the baseline!")
-
-
msg_box.exec_()
阅读(2878) | 评论(0) | 转发(0) |