diff options
author | Treeki <treeki@gmail.com> | 2011-11-03 05:16:37 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-11-03 05:16:37 +0100 |
commit | 870cf5ad6f121e3a0f69c7f1645dad59eded416b (patch) | |
tree | c040c4b02c43341831f2da24030e7ab9d7128249 /src/main.py | |
parent | 549e682e0f8b3c0b758c2aaf1ae66c5ca9128f5b (diff) | |
download | koopatlas-870cf5ad6f121e3a0f69c7f1645dad59eded416b.tar.gz koopatlas-870cf5ad6f121e3a0f69c7f1645dad59eded416b.zip |
current broken progress
Diffstat (limited to '')
-rw-r--r-- | src/main.py | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/main.py b/src/main.py index ba1ff2c..927c970 100644 --- a/src/main.py +++ b/src/main.py @@ -1,16 +1,19 @@ -from PyQt4 import QtCore, QtGui -import sys - +from common import * from ui import KPMainWindow -def run_koopatlas(): - global Koopatlas - Koopatlas = KPApplication(sys.argv) - Koopatlas.run() +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() -class KPApplication(QtGui.QApplication): - def run(self): - self.mainWindow = KPMainWindow() - self.mainWindow.show() - self.exec_() + KP.app.exec_() |