1 import sys 2 from PyQt4.QtCore import * 3 from PyQt4.QtGui import * 4 5 app=QApplication(sys.argv) 6 window=QWidget() 7 window.resize(320,240) 8 window.show() 9 sys.exit(app.exec_())