from PyQt4 QtGui import import sys app QApplication sys argv button QP

1
2
3
4
5
6
7
from PyQt4.QtGui import *
import sys
app = QApplication(sys.argv)
button = QPushButton('Hello World!')
button.show()
app.exec_()