Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-08-03 12:43:20 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-08-03 12:43:20 (GMT)
commit68532a1ae4097a5480ee46e1ea240244549ac60b (patch)
treefae0e39d8b2b55d5e036b13ccda19e0c2d15a072 /TurtleArt/tawindow.py
parentbf31207c8dedd6a309ab95e4ab27d4431560c2f5 (diff)
added ability to collapse stack from top of stack (#3010)
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py8
1 files changed, 7 insertions, 1 deletions
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)