summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-11-03 04:07:53 +0100
committerTreeki <treeki@gmail.com>2011-11-03 04:07:53 +0100
commitce3988684c2dbf470976399f1b895aca35461695 (patch)
tree029b34371f81c61957143a714206b6e333c976c0
downloadkoopatlas-ce3988684c2dbf470976399f1b895aca35461695.tar.gz
koopatlas-ce3988684c2dbf470976399f1b895aca35461695.zip
initial commit
Diffstat (limited to '')
-rw-r--r--.gitignore1
-rwxr-xr-xkoopatlas.py14
-rw-r--r--src/editorui.py7
-rw-r--r--src/main.py16
-rw-r--r--src/ui.py23
5 files changed, 61 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0d20b64
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.pyc
diff --git a/koopatlas.py b/koopatlas.py
new file mode 100755
index 0000000..475611c
--- /dev/null
+++ b/koopatlas.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python2
+
+# Koopatlas
+# A project by Treeki and Tempus
+# Started 2nd November 2011
+
+import os.path, sys
+sys.path.append(os.path.join(os.path.dirname(__file__), 'src'))
+
+from main import *
+
+if __name__ == '__main__':
+ run_koopatlas()
+
diff --git a/src/editorui.py b/src/editorui.py
new file mode 100644
index 0000000..d53deb7
--- /dev/null
+++ b/src/editorui.py
@@ -0,0 +1,7 @@
+from PyQt4 import QtCore, QtGui
+
+class KPEditorWidget(QtGui.QGraphicsView):
+ pass
+
+
+
diff --git a/src/main.py b/src/main.py
new file mode 100644
index 0000000..ba1ff2c
--- /dev/null
+++ b/src/main.py
@@ -0,0 +1,16 @@
+from PyQt4 import QtCore, QtGui
+import sys
+
+from ui import KPMainWindow
+
+def run_koopatlas():
+ global Koopatlas
+ Koopatlas = KPApplication(sys.argv)
+ Koopatlas.run()
+
+class KPApplication(QtGui.QApplication):
+ def run(self):
+ self.mainWindow = KPMainWindow()
+ self.mainWindow.show()
+ self.exec_()
+
diff --git a/src/ui.py b/src/ui.py
new file mode 100644
index 0000000..9b5f705
--- /dev/null
+++ b/src/ui.py
@@ -0,0 +1,23 @@
+from PyQt4 import QtCore, QtGui
+
+from editorui import *
+
+
+class KPMainWindow(QtGui.QMainWindow):
+ def __init__(self):
+ QtGui.QMainWindow.__init__(self)
+
+ self.editor = KPEditorWidget()
+ self.setCentralWidget(self.editor)
+
+ self.setupMenuBar()
+
+
+ def setupMenuBar(self):
+ mb = self.menuBar()
+
+ m = mb.addMenu('&File')
+ # ...
+
+
+