From 45b84b4e6ed9ffde1de4922407517663ecc46316 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 18 Jul 2024 11:41:03 +0800 Subject: [PATCH] ctrl_panel: Keep i_set visible when PID engaged Since i_set is also plotted, we would 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 d61ac4f..2e6f142 100644 --- a/pytec/pytec/gui/view/ctrl_panel.py +++ b/pytec/pytec/gui/view/ctrl_panel.py @@ -54,7 +54,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" ) )