from PyQt4.QtGui import * app = QApplication([]) win = QWidget() win.show() app.exec_()