Mercurial > boomslang
comparison pyntnclick/tools/rect_drawer.py @ 713:62f4f948ff01 pyntnclick
Fix bug with zooms and images
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sun, 05 Aug 2012 15:02:26 +0200 |
parents | f33dd2093f77 |
children | 4716709b28c1 |
comparison
equal
deleted
inserted
replaced
712:f33dd2093f77 | 713:62f4f948ff01 |
---|---|
509 self.old_mouse_pos = None | 509 self.old_mouse_pos = None |
510 self.invalidate() | 510 self.invalidate() |
511 else: | 511 else: |
512 cand = None | 512 cand = None |
513 for image in self.images: | 513 for image in self.images: |
514 if image.rect.collidepoint(ev.pos): | 514 if image.rect.collidepoint(pos): |
515 cand = image | 515 cand = image |
516 break | 516 break |
517 if cand: | 517 if cand: |
518 self.images.remove(cand) | 518 self.images.remove(cand) |
519 self.current_image = cand | 519 self.current_image = cand |