summaryrefslogtreecommitdiff
path: root/src/ui.py
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 /src/ui.py
downloadkoopatlas-ce3988684c2dbf470976399f1b895aca35461695.tar.gz
koopatlas-ce3988684c2dbf470976399f1b895aca35461695.zip
initial commit
Diffstat (limited to '')
-rw-r--r--src/ui.py23
1 files changed, 23 insertions, 0 deletions
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')
+ # ...
+
+
+