Expand PID Settings on PID engage

This commit is contained in:
atse 2024-07-16 11:29:41 +08:00
parent e1565e2dfc
commit 2ae07107a2
2 changed files with 8 additions and 1 deletions

View File

@ -127,6 +127,13 @@ class CtrlPanel(QObject):
for handle in sigActivated_handles[i]: for handle in sigActivated_handles[i]:
self.params[i].child(*handle[0]).sigActivated.connect(handle[1]) 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): def _setValue(self, value, blockSignal=None):
""" """
Implement 'lock' mechanism for Parameter Type Implement 'lock' mechanism for Parameter Type

View File

@ -207,7 +207,7 @@
{ {
"name":"pid", "name":"pid",
"title":"PID Settings", "title":"PID Settings",
"expanded":true, "expanded":false,
"type":"group", "type":"group",
"tip": "", "tip": "",
"children":[ "children":[