from PyQt4.QtGui import QApplication app = QApplication(sys.argv) ... from PyQt4.QtGui import * from PyQt4.QtCore import *