Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions PanGUI/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,22 +193,27 @@ def setplotopts(self, q):
# unwind path
qpath = q.data()["path"]
_opts = plotopts
_popts = self.preOpts[idx]
if qpath:
cpath = qpath.split("_")
for k in cpath:
_opts = _opts[k]
_popts = _popts[k]

if isinstance(_opts, DPT.objects.ExclusiveOptions):
if q.isChecked():
_popts.select(_opts.selected)
_opts.select(q.text())
elif q.isCheckable():
_popts[q.text()] = _opts[q.text()]
_opts[q.text()] = q.isChecked()
elif not q.isCheckable() and q.menu() is None: # Text input
text, okPressed = QtWidgets.QInputDialog.getText(self,q.text(),"",
QtWidgets.QLineEdit.Normal,
str(q.data()["value"]))
if okPressed:
# unwind the path
_popts[q.text()] = _opts[q.text()]
_opts[q.text()] = type(q.data()["value"])(text)

if replotAll:
Expand Down