summaryrefslogtreecommitdiff
path: root/src/worldeditor.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/worldeditor.py')
-rw-r--r--src/worldeditor.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/worldeditor.py b/src/worldeditor.py
new file mode 100644
index 0000000..a2262ae
--- /dev/null
+++ b/src/worldeditor.py
@@ -0,0 +1,17 @@
+from common import *
+
+class KPWorldEditor(QtGui.QWidget):
+ def __init__(self, parent=None):
+ QtGui.QWidget.__init__(self, parent)
+ self.setWindowTitle('World Editor')
+
+ self.dataView = QtGui.QTableView(self)
+ self.addButton = QtGui.QPushButton('Add', self)
+ self.removedButton = QtGui.QPushButton('Remove', self)
+
+ layout = QtGui.QGridLayout(self)
+ layout.addWidget(self.dataView, 0, 0, 1, 2)
+ layout.addWidget(self.addButton, 1, 0, 1, 1)
+ layout.addWidget(self.removeButton, 1, 1, 1, 1)
+
+ self.currentWorlds = None