diff --git a/orangecontrib/text/widgets/owtopicmodeling.py b/orangecontrib/text/widgets/owtopicmodeling.py index bc15e7dc3..7f0b63df3 100644 --- a/orangecontrib/text/widgets/owtopicmodeling.py +++ b/orangecontrib/text/widgets/owtopicmodeling.py @@ -37,11 +37,21 @@ def __init__(self, master, **kwargs): self.model = self.create_model() QVBoxLayout(self) for parameter, description, minv, maxv, step, _type in self.parameters: - spin = gui.spin(self, self, parameter, minv=minv, maxv=maxv, step=step, - label=self.spin_format.format(description=description, parameter=parameter), - labelWidth=220, spinType=_type) + spin = gui.spin( + self, + self, + parameter, + minv=minv, + maxv=maxv, + step=step, + label=self.spin_format.format( + description=description, parameter=parameter + ), + labelWidth=220, + spinType=_type, + callback=self.on_change, + ) spin.clearFocus() - spin.editingFinished.connect(self.on_change) def on_change(self): self.model = self.create_model()