forked from M-Labs/thermostat
Expand PID Settings on PID engage
This commit is contained in:
parent
e1565e2dfc
commit
2ae07107a2
@ -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
|
||||||
|
@ -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":[
|
||||||
|
Loading…
Reference in New Issue
Block a user