forked from M-Labs/thermostat
No private to slot
This commit is contained in:
parent
5c8ab769f3
commit
1581aa4027
|
@ -42,7 +42,7 @@ class MutexParameter(pTypes.ListParameter):
|
|||
def __init__(self, **opts):
|
||||
super().__init__(**opts)
|
||||
|
||||
self.sigValueChanged.connect(self._show_chosen_child)
|
||||
self.sigValueChanged.connect(self.show_chosen_child)
|
||||
self.sigValueChanged.emit(self, self.opts['value'])
|
||||
|
||||
def _get_param_from_value(self, value):
|
||||
|
@ -54,7 +54,7 @@ class MutexParameter(pTypes.ListParameter):
|
|||
return self.children()[values_list.index(value)]
|
||||
|
||||
@pyqtSlot(object, object)
|
||||
def _show_chosen_child(self, value):
|
||||
def show_chosen_child(self, value):
|
||||
for param in self.children():
|
||||
param.hide()
|
||||
|
||||
|
|
Loading…
Reference in New Issue