import sys from qt import QApplication, QPushButton def main(): QApplication.app(len(sys.argv), sys.argv) QPushButton.hello("Hello world!") hello.resize(100, 30) hello.show return app.exec_()