from common import * class KP: @staticmethod def newMap(): from mapdata import KPMap KP.map = KPMap() @staticmethod def run(): KP.app = QtGui.QApplication(sys.argv) KP.newMap() from ui import KPMainWindow KP.mainWindow = KPMainWindow() KP.mainWindow.show() KP.app.exec_()