diff --git a/pytec/pytec/gui/view/ctrl_panel.py b/pytec/pytec/gui/view/ctrl_panel.py index b747d1b..2bac57d 100644 --- a/pytec/pytec/gui/view/ctrl_panel.py +++ b/pytec/pytec/gui/view/ctrl_panel.py @@ -127,6 +127,13 @@ class CtrlPanel(QObject): for handle in sigActivated_handles[i]: self.params[i].child(*handle[0]).sigActivated.connect(handle[1]) + self.params[i].child("output", "i_set").sigAutoChanged.connect( + lambda param, auto: param.parent() + .parent() + .child("pid") + .setOpts(expanded=auto) + ) + def _setValue(self, value, blockSignal=None): """ Implement 'lock' mechanism for Parameter Type diff --git a/pytec/pytec/gui/view/param_tree.json b/pytec/pytec/gui/view/param_tree.json index cd48413..fe791da 100644 --- a/pytec/pytec/gui/view/param_tree.json +++ b/pytec/pytec/gui/view/param_tree.json @@ -207,7 +207,7 @@ { "name":"pid", "title":"PID Settings", - "expanded":true, + "expanded":false, "type":"group", "tip": "", "children":[