from common import * class KP: @staticmethod def newMap(): 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_()