#!/usr/bin/env python # Qt tutorial 1. import sys import qt a = qt.QApplication(sys.argv) hello = qt.QPushButton("Hello world!", None) hello.resize(100, 30) a.setMainWidget(hello) hello.show() sys.exit(a.exec_loop())