Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TurtleArt/tautils.py4
-rw-r--r--TurtleArt/tawindow.py8
2 files changed, 11 insertions, 1 deletions
diff --git a/TurtleArt/tautils.py b/TurtleArt/tautils.py
index 0c6fe64..ed14784 100644
--- a/TurtleArt/tautils.py
+++ b/TurtleArt/tautils.py
@@ -388,6 +388,8 @@ def reset_stack_arm(top):
if top is not None and top.name in ['sandwichtop', 'sandwichtop_no_label']:
if top.ey > 0:
top.reset_y()
+ top.svg.set_hide(False)
+ top.refresh()
def grow_stack_arm(top):
@@ -404,6 +406,7 @@ def grow_stack_arm(top):
_dy = _by - (_ty + _th)
if _dy > 0:
top.expand_in_y(_dy / top.scale)
+ top.svg.set_hide(True)
top.refresh()
@@ -586,6 +589,7 @@ def collapse_stack(top):
top.resize()
top.spr.set_label(_('click to open'), 1)
top.resize()
+ top.svg.set_hide(False)
top.refresh()
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)