Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tautils.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/tautils.py
parentbf31207c8dedd6a309ab95e4ab27d4431560c2f5 (diff)
added ability to collapse stack from top of stack (#3010)
Diffstat (limited to 'TurtleArt/tautils.py')
-rw-r--r--TurtleArt/tautils.py4
1 files changed, 4 insertions, 0 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()