Consistently emit values with Parameter.sigValueChanging

This commit is contained in:
Daniel Lidstrom 2020-12-21 12:30:08 -08:00
parent d737d80c52
commit 4561b18377

View File

@ -245,9 +245,7 @@ class WidgetParameterItem(ParameterItem):
Called when the widget's value is changing, but not finalized. Called when the widget's value is changing, but not finalized.
For example: editing text before pressing enter or changing focus. For example: editing text before pressing enter or changing focus.
""" """
# This is a bit sketchy: assume the last argument of each signal is self.param.sigValueChanging.emit(self.param, self.widget.value())
# the value..
self.param.sigValueChanging.emit(self.param, args[-1])
def selected(self, sel): def selected(self, sel):
"""Called when this item has been selected (sel=True) OR deselected (sel=False)""" """Called when this item has been selected (sel=True) OR deselected (sel=False)"""