Skip to content

Commit

Permalink
OWManifoldLearning: Apply changes when spin looses focus
Browse files Browse the repository at this point in the history
  • Loading branch information
VesnaT committed Nov 2, 2016
1 parent 8408067 commit 37097ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Orange/widgets/unsupervised/owmanifoldlearning.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _create_spin_parameter(self, name, minv, maxv, label):
self.__spin_parameter_update(name)
return gui.spin(
self.main_area, self, name, minv, maxv, label=label,
alignment=Qt.AlignRight,
alignment=Qt.AlignRight, callbackOnReturn=True,
callback=lambda f=self.__spin_parameter_update,
p=name: self.__parameter_changed(f, p))

Expand Down Expand Up @@ -210,7 +210,7 @@ def __init__(self):
output_box = gui.vBox(self.controlArea, "Output")
self.n_components_spin = gui.spin(
output_box, self, "n_components", 1, 10, label="Components:",
alignment=Qt.AlignRight,
alignment=Qt.AlignRight, callbackOnReturn=True,
callback=self.settings_changed)
self.apply_button = gui.auto_commit(
output_box, self, "auto_apply", "&Apply",
Expand Down

0 comments on commit 37097ae

Please sign in to comment.