summaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-11-03 05:16:37 +0100
committerTreeki <treeki@gmail.com>2011-11-03 05:16:37 +0100
commit870cf5ad6f121e3a0f69c7f1645dad59eded416b (patch)
treec040c4b02c43341831f2da24030e7ab9d7128249 /src/main.py
parent549e682e0f8b3c0b758c2aaf1ae66c5ca9128f5b (diff)
downloadkoopatlas-870cf5ad6f121e3a0f69c7f1645dad59eded416b.tar.gz
koopatlas-870cf5ad6f121e3a0f69c7f1645dad59eded416b.zip
current broken progress
Diffstat (limited to '')
-rw-r--r--src/main.py27
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_()