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