pyqt提示对话框

  1. from PyQt4.QtGui import *
  2. from PyQt4.QtCore import *
  3. import sys

  4. app = QApplication(sys.argv)
  5. msg_box = QMessageBox(QMessageBox.Warning, "Alert", "Please configure the baseline!")
  6. msg_box.show()
  7. app.exec_()


ss
if the alert show when click some button, should show like this:

  1. msg_box = QMessageBox(QMessageBox.Warning, "Alert", "Please configure the baseline!")

  2. msg_box.exec_()

你可能感兴趣的:(pyqt提示对话框)