From 4adfa54d0f8b07bbda840e7dd29298e32aad1bc8 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 16 Sep 2010 22:39:42 +0000 Subject: run math blocks when not expanding/contracting --- (limited to 'TurtleArt/tawindow.py') 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]) -- cgit v0.9.1