diff --git a/pype/tools/settings/local_settings/widgets.py b/pype/tools/settings/local_settings/widgets.py index 1b077f93be..2293fdfed5 100644 --- a/pype/tools/settings/local_settings/widgets.py +++ b/pype/tools/settings/local_settings/widgets.py @@ -22,7 +22,7 @@ class Separator(QtWidgets.QFrame): class ProxyLabelWidget(QtWidgets.QWidget): - def __init__(self, label, mouse_release_callback, parent=None): + def __init__(self, label, mouse_release_callback=None, parent=None): super(ProxyLabelWidget, self).__init__(parent) self.mouse_release_callback = mouse_release_callback @@ -38,6 +38,9 @@ class ProxyLabelWidget(QtWidgets.QWidget): self.label_widget = label_widget + def set_mouse_release_callback(self, callback): + self.mouse_release_callback = callback + def setText(self, text): self.label_widget.setText(text)