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