pyqt提示对话框

来源:互联网 发布:淘宝山店软妹模特 编辑:程序博客网 时间:2024/04/29 13:24
  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_()
0 0
原创粉丝点击