Skip to content

Commit

Permalink
VizRank: do not select visualization until finish or pause
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Jul 1, 2016
1 parent 512c35b commit ba49dda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/widgets/visualize/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def run(self):
pos, self.row_for_state(score, state))
self.scores.insert(pos, score)
progress.advance()
self._select_first_if_none()
self._select_first_if_none()
self.button.setText("Finished")
self.button.setEnabled(False)

Expand All @@ -199,6 +199,7 @@ def toggle(self):
self.button.setText("Pause")
self.run()
else:
self._select_first_if_none()
self.button.setText("Continue")


Expand Down Expand Up @@ -249,7 +250,7 @@ def iterate_states(self, initial_state):
si, sj = initial_state or (0, 0)
for i in range(si, len(self.attrs)):
for j in range(sj, i):
yield i, j
yield j, i

def row_for_state(self, score, state):
items = []
Expand Down

0 comments on commit ba49dda

Please sign in to comment.