summaryrefslogtreecommitdiff
path: root/src/ui.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ui.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui.py b/src/ui.py
index 05923e3..c154225 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -1140,6 +1140,7 @@ class KPMainWindow(QtGui.QMainWindow):
m = mb.addMenu('Map')
self.ma = m.addAction('Set Background...', self.setMapBackground)
+ self.ma = m.addAction('World Editor...', self.showWorldEditor)
w = mb.addMenu('Window')
self.wa = w.addAction('Show Grid', self.showGrid, QKeySequence("Ctrl+G"))
@@ -1635,6 +1636,12 @@ class KPMainWindow(QtGui.QMainWindow):
if newBG is not None:
KP.map.bgName = newBG
+ @QtCore.pyqtSlot()
+ def showWorldEditor(self):
+ from worldeditor import KPWorldEditor
+ dlg = KPWorldEditor(KP.map, self)
+ dlg.show()
+
# Window
########################
@QtCore.pyqtSlot()