From 1581aa40276092e46386187f18961d56c79d39e3 Mon Sep 17 00:00:00 2001 From: atse Date: Tue, 29 Aug 2023 13:11:25 +0800 Subject: [PATCH] No private to slot --- pytec/tec_qt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 52d16b4..46a4e2c 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -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()