Mercurial > pyntnclick
comparison tools/rect_drawer.py @ 538:d1b86d5849a0
More pep8 cleanups
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 11 Feb 2012 12:15:31 +0200 |
parents | 5b9f371c2bb8 |
children | 53cc4049fb30 |
comparison
equal
deleted
inserted
replaced
537:5b9f371c2bb8 | 538:d1b86d5849a0 |
---|---|
469 break | 469 break |
470 if cand: | 470 if cand: |
471 # Find current interacts in this thing | 471 # Find current interacts in this thing |
472 cur_interact = cand.current_interact | 472 cur_interact = cand.current_interact |
473 j = cand.interacts.values().index(cur_interact) | 473 j = cand.interacts.values().index(cur_interact) |
474 if j + 1< len(cand.interacts): | 474 if j + 1 < len(cand.interacts): |
475 next_name = cand.interacts.keys()[j+1] | 475 next_name = cand.interacts.keys()[j + 1] |
476 else: | 476 else: |
477 next_name = cand.interacts.keys()[0] | 477 next_name = cand.interacts.keys()[0] |
478 if cand.interacts[next_name] != cur_interact: | 478 if cand.interacts[next_name] != cur_interact: |
479 cand.set_interact(next_name) | 479 cand.set_interact(next_name) |
480 elif self.mode == 'draw': | 480 elif self.mode == 'draw': |