diff options
author | Treeki <treeki@gmail.com> | 2012-07-24 04:18:54 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-07-24 04:18:54 +0200 |
commit | 4a9608453a6010979e3c99edabeaf2061edd8c49 (patch) | |
tree | 4c4ff12a4b7f9ac5cf4810bae0c142c0158f95b2 /src/editorui | |
parent | d502df57548a1ff5a3c6852829dee4b22a226067 (diff) | |
download | koopatlas-4a9608453a6010979e3c99edabeaf2061edd8c49.tar.gz koopatlas-4a9608453a6010979e3c99edabeaf2061edd8c49.zip |
finished up the UI for editing unlocks, and the parser
Diffstat (limited to '')
-rw-r--r-- | src/editorui/paths.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/editorui/paths.py b/src/editorui/paths.py index a0e65d6..43a1465 100644 --- a/src/editorui/paths.py +++ b/src/editorui/paths.py @@ -593,10 +593,15 @@ class KPEditorPath(QtGui.QGraphicsLineItem): # modify the unlock settings from unlock import KPUnlockSpecDialog - # todo: set the existing thing there - result = KPUnlockSpecDialog.exec_() + dlg = KPUnlockSpecDialog('path', 'unlocked') + + if hasattr(self._pathRef(), 'unlockSpec'): + dlg.setSpec(self._pathRef().unlockSpec) + + result = dlg.exec_() if result == QtGui.QDialog.Accepted: - print "OK!" + print "New spec:", dlg.spec + self._pathRef().unlockSpec = dlg.spec def updatePosition(self): |