from PyQt4.QtGui import * import sys app = QApplication(sys.argv) button = QPushButton('Hello World!') button.show() app.exec_()