参考地址:https://files.cnblogs.com/coderzh/pdf/Getting_Started_With_PyQt4_v1.pdf
import sysfrom PyQt4.QtGui import QApplication, QPushButtonapp = QApplication(sys.argv)button = QPushButton("Hello world!")button.show()sys.exit(app.exec_())
完