forked from M-Labs/thermostat
Compare commits
8 Commits
c6fa3cdb80
...
a6c852369f
Author | SHA1 | Date | |
---|---|---|---|
a6c852369f | |||
3ed181403f | |||
205f5c0ae9 | |||
3c4bc4b50c | |||
3a0bb66212 | |||
9ebdcfc54f | |||
980cabefb5 | |||
e1861263b2 |
@ -57,22 +57,19 @@ class CtrlPanel(QObject):
|
|||||||
for handle in sigActivated_handles[ch]:
|
for handle in sigActivated_handles[ch]:
|
||||||
param.child(*handle[0]).sigActivated.connect(handle[1])
|
param.child(*handle[0]).sigActivated.connect(handle[1])
|
||||||
|
|
||||||
def _indicate_usage(param, control_method):
|
def _highlight_usage(param, control_method):
|
||||||
for item in param.child("i_set").items:
|
for item in param.child("i_set").items:
|
||||||
is_constant_current = control_method == "constant_current"
|
|
||||||
font = item.font(0)
|
font = item.font(0)
|
||||||
font.setUnderline(is_constant_current)
|
font.setUnderline(control_method == "constant_current")
|
||||||
font.setBold(is_constant_current)
|
font.setBold(control_method == "constant_current")
|
||||||
item.setFont(0, font)
|
item.setFont(0, font)
|
||||||
for item in param.child("target").items:
|
for item in param.child("target").items:
|
||||||
is_temperature_pid = control_method == "temperature_pid"
|
|
||||||
font = item.font(0)
|
font = item.font(0)
|
||||||
font.setUnderline(is_temperature_pid)
|
font.setUnderline(control_method == "temperature_pid")
|
||||||
font.setBold(is_temperature_pid)
|
font.setBold(control_method == "temperature_pid")
|
||||||
item.setFont(0, font)
|
item.setFont(0, font)
|
||||||
|
|
||||||
param.child("output", "control_method").sigValueChanged.connect(_indicate_usage)
|
param.child("output", "control_method").sigValueChanged.connect(_highlight_usage)
|
||||||
|
|
||||||
for item in param.child("output", "control_method").items:
|
for item in param.child("output", "control_method").items:
|
||||||
font = item.font(0)
|
font = item.font(0)
|
||||||
font.setBold(True)
|
font.setBold(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user