基本用法 Hello World
app = QApplication( sys.argv )
box = QMessageBox()
# Window Title
box.setWindowTitle( "Hello World." )
# Icon: Information, Warning, Question, Critical
box.setIcon( QMessageBox.Information )
# Short version of the information
box.setText( "Hello World!" )
# Informative text
box.setInformativeText( "Hello World! We are using Qt to display this beautiful dialog to you." )
# Show the messagebox as a modal dialog
box.exec_()
return 0