diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-02-17 02:50:42 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-02-17 02:50:42 (GMT) |
commit | 488c1013b93ba633e708931d6bbd0d175c206ce1 (patch) | |
tree | f7ddc3261cd633849a68a523f881f1050de26ac2 | |
parent | 63fafb3110090880ca152a7d31159d0880134025 (diff) |
cleaned up some trash-related comments
-rw-r--r-- | TurtleArt/tawindow.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 9441ad8..77459e5 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -1308,12 +1308,7 @@ class TurtleArtWindow(): self.trash_stack = [] def _in_the_trash(self, x, y): - """ Is x, y over the trash can? """ - """ - if self.selected_palette == palette_names.index('trash') and \ - self.palette_sprs[palette_names.index('trash')][self.orientation].hit((x, y)): - return True - """ + """ Is x, y over a palette? """ if self.selected_palette is not None and \ self.palette_sprs[self.selected_palette][self.orientation].hit( (x, y)): @@ -1791,7 +1786,7 @@ class TurtleArtWindow(): return blk = self.drag_group[0] - # Remove blocks by dragging them onto the trash palette. + # Remove blocks by dragging them onto any palette. if self.block_operation == 'move' and self._in_the_trash(x, y): self._put_in_trash(blk, x, y) self.drag_group = None |