Skip to content

Commit

Permalink
Removed policy for spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec authored and kernc committed Mar 30, 2017
1 parent e6d8359 commit 66eef19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions orangecontrib/educational/widgets/owkmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,15 @@ def __init__(self):
widget=self.options_box, master=self, orientation=Qt.Horizontal,
callback=self.restart, sendSelectedValue=True,
maximumContentsLength=15)
policy = QSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Fixed)

self.cbx = gui.comboBox(value='attr_x', label='X: ', **opts)
self.cby = gui.comboBox(value='attr_y', label='Y: ', **opts)

self.centroids_box = gui.widgetBox(self.controlArea, "Centroids")
self.centroid_numbers_spinner = gui.spin(
self.centroids_box, self, 'number_of_clusters',
minv=1, maxv=10, step=1, label='Number of centroids:',
alignment=Qt.AlignRight, callback=self.number_of_clusters_change,
sizePolicy=policy)
alignment=Qt.AlignRight, callback=self.number_of_clusters_change)
self.restart_button = gui.button(
self.centroids_box, self, "Randomize Positions",
callback=self.restart)
Expand Down

0 comments on commit 66eef19

Please sign in to comment.