From 68532a1ae4097a5480ee46e1ea240244549ac60b Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 03 Aug 2011 12:43:20 +0000 Subject: added ability to collapse stack from top of stack (#3010) --- (limited to 'TurtleArt/tawindow.py') diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 0569f7c..f38b503 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -1794,7 +1794,13 @@ class TurtleArtWindow(): 'sandwichtop_no_arm']: restore_stack(blk) - elif blk.name in COLLAPSIBLE: + elif blk.name in COLLAPSIBLE or blk.name == 'sandwichtop_no_label': + if blk.name == 'sandwichtop_no_label': + debug_output('>>>>>>>>> HIT SANDWICHTOP') + if hide_button_hit(blk.spr, x, y): + collapse_stack(blk) + else: + self._run_stack(blk) top = find_sandwich_top(blk) if collapsed(blk): restore_stack(top) # deprecated (bottom block is invisible) -- cgit v0.9.1