diff options
author | Walter Bender <walter@sugarlabs.org> | 2010-09-08 17:36:59 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2010-09-08 17:36:59 (GMT) |
commit | b374e3b2c4a62b33d6eef308dcf5018ce6168096 (patch) | |
tree | 5c920c19db66fa59553925b35aa47c73ec2de141 /TurtleArt/tawindow.py | |
parent | 0a3a5041f2d12af7394fb3ce6e2272024bf3d644 (diff) |
added collapsible block without comment label as per #2302
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r-- | TurtleArt/tawindow.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 0e2aa76..14619f7 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -473,7 +473,7 @@ class TurtleArtWindow(): if collapsed(blk): collapse_stack(find_sandwich_top(blk)) for blk in blocks: - if blk.name == 'sandwichtop': + if blk.name in ['sandwichtop', 'sandwichtop_no_label']: grow_stack_arm(blk) # Resize the skins on some blocks: media content and Python @@ -1318,8 +1318,11 @@ class TurtleArtWindow(): # Remove turtles by dragging them onto the trash palette. if self._in_the_trash(tx, ty): + # If it is the default turtle, just recenter it. if k == self.default_turtle_name: self._move_turtle(0, 0) + self.canvas.heading = 0 + self.canvas.turn_turtle() else: self.selected_turtle.hide() self.turtles.remove_from_dict(k) @@ -1486,7 +1489,7 @@ class TurtleArtWindow(): # no longer have access to the group with the sandwich top # so check them all. for b in self.just_blocks(): - if b.name == 'sandwichtop': + if b.name in ['sandwichtop', 'sandwichtop_no_label']: if find_sandwich_bottom(b) is None: reset_stack_arm(b) gblk.refresh() |