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