diff options
author | Walter Bender <walter@sugarlabs.org> | 2010-09-16 22:39:42 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2010-09-16 22:39:42 (GMT) |
commit | 4adfa54d0f8b07bbda840e7dd29298e32aad1bc8 (patch) | |
tree | 0dd8853bdbc5c791c3f07c525fe93c34fede3a64 /TurtleArt/tawindow.py | |
parent | 6845b402c45636bdbfd77ccc70ccbb2d731371ab (diff) |
run math blocks when not expanding/contracting
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r-- | TurtleArt/tawindow.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index ff807d8..743647b 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -1379,7 +1379,7 @@ class TurtleArtWindow(): self.selected_turtle.spr.set_layer(TURTLE_LAYER) def _click_block(self, x, y): - """ Click block """ + """ Click block: lots of special cases to handle... """ blk = self.block_list.spr_to_block(self.selected_spr) if blk is None: return @@ -1423,6 +1423,8 @@ class TurtleArtWindow(): dy = 20 blk.expand_in_y(dy) else: + # since we are not expanding or contracting, run the stack + self._run_stack(blk) dy = 0 if blk.connections[1] is not None: group = find_group(blk.connections[1]) |