Skip to content

Commit

Permalink
OWLouvain: Use tracking instead of mouse release event to properly up…
Browse files Browse the repository at this point in the history
…date slider
  • Loading branch information
pavlin-policar committed Jul 17, 2018
1 parent 796a794 commit 6c5231c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Orange/widgets/unsupervised/owlouvainclustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def __init__(self):
) # type: QCheckBox
self.pca_components_slider = gui.hSlider(
pca_box, self, 'pca_components', label='Components: ', minValue=2,
maxValue=_MAX_PCA_COMPONENTS,
maxValue=_MAX_PCA_COMPONENTS, callback=self._update_pca_components,
tracking=False
) # type: QSlider
self.pca_components_slider.sliderReleased.connect(self._update_pca_components)

graph_box = gui.vBox(self.controlArea, 'Graph parameters')
self.metric_combo = gui.comboBox(
Expand All @@ -158,8 +158,8 @@ def __init__(self):
self.resolution_spin = gui.hSlider(
graph_box, self, 'resolution', minValue=0, maxValue=5., step=1e-1,
label='Resolution', intOnly=False, labelFormat='%.1f',
callback=self._update_resolution, tracking=False,
) # type: QSlider
self.resolution_spin.sliderReleased.connect(self._update_resolution)
self.resolution_spin.parent().setToolTip(
'The resolution parameter affects the number of clusters to find. '
'Smaller values tend to produce more clusters and larger values '
Expand Down

0 comments on commit 6c5231c

Please sign in to comment.