diff options
Diffstat (limited to '')
-rw-r--r-- | src/ui.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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() |