From 6dcd1b6275059932f38f2b63bc5705eca26c02f4 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 18 Jul 2024 11:41:03 +0800 Subject: [PATCH] Keep i_set visible even when PID is engaged Since i_set is also plotted, we would also want to see its precise value too. --- pytec/pytec/gui/view/ctrl_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/pytec/gui/view/ctrl_panel.py b/pytec/pytec/gui/view/ctrl_panel.py index bec6dba..d578727 100644 --- a/pytec/pytec/gui/view/ctrl_panel.py +++ b/pytec/pytec/gui/view/ctrl_panel.py @@ -53,7 +53,7 @@ class CtrlPanel(QObject): param.child(*handle[0]).sigActivated.connect(handle[1]) param.child("output", "control_method").sigValueChanged.connect( - lambda param, value: param.child("i_set").show( + lambda param, value: param.child("i_set").setWritable( value == "constant_current" ) )