How do I create a critical error message using PySide?

前端 未结 2 494
慢半拍i
慢半拍i 2021-01-14 21:54

I seem to be hitting a brick wall. No matter what I do, creating a critical error Message Box just doesn\'t seem to be working. Here\'s what I\'ve tried thus far:

2条回答
  •  天涯浪人
    2021-01-14 22:16

    Simple Example Below

    import sys
    from PySide import QtGui
    app = QtGui.QApplication(sys.argv)
    a=QtGui.QMessageBox.critical(None,'Error!',"Error Message!", QtGui.QMessageBox.Abort)
    

提交回复
热议问题