forked from M-Labs/thermostat
i -> ch
and others
This commit is contained in:
parent
97c5f2a201
commit
dbee457c09
@ -75,16 +75,17 @@ class CtrlPanel(QObject):
|
|||||||
for ch in range(self.NUM_CHANNELS)
|
for ch in range(self.NUM_CHANNELS)
|
||||||
]
|
]
|
||||||
|
|
||||||
for i, tree in enumerate(self.trees_ui):
|
for ch, tree in enumerate(self.trees_ui):
|
||||||
tree.setHeaderHidden(True)
|
tree.setHeaderHidden(True)
|
||||||
tree.setParameters(self.params[i], showTop=False)
|
tree.setParameters(self.params[ch], showTop=False)
|
||||||
self.params[i].setValue = self._setValue
|
self.params[ch].setValue = self._setValue
|
||||||
self.params[i].sigTreeStateChanged.connect(sigTreeStateChanged_handle)
|
self.params[ch].sigTreeStateChanged.connect(sigTreeStateChanged_handle)
|
||||||
|
|
||||||
set_tree_label_tips(tree)
|
set_tree_label_tips(tree)
|
||||||
|
|
||||||
for handle in sigActivated_handles[i]:
|
for handle in sigActivated_handles[ch]:
|
||||||
self.params[i].child(*handle[0]).sigActivated.connect(handle[1])
|
self.params[ch].child(*handle[0]).sigActivated.connect(handle[1])
|
||||||
|
|
||||||
|
|
||||||
def _setValue(self, value, blockSignal=None):
|
def _setValue(self, value, blockSignal=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user