Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-07 22:46:22 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-07 22:46:22 (GMT)
commitd12b51e33b36b708da885b8137227b3061f4ba15 (patch)
tree40339acbe00250ac92ddd6fa9cce5f5a4a7bec2c
parent56de8abeacdd3da8834cee49be2fe9c5b4b08440 (diff)
fixed hide problem with trash palette
-rw-r--r--tawindow.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tawindow.py b/tawindow.py
index 9dc0d55..23a01c1 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -439,7 +439,8 @@ class TurtleArtWindow():
blk.spr.set_layer(TAB_LAYER)
if n == PALETTE_NAMES.index('trash'):
for blk in self.trash_stack:
- blk.spr.set_layer(TAB_LAYER)
+ for b in self._find_group(blk):
+ b.spr.set_layer(TAB_LAYER)
"""
Hide the toolbar palettes
@@ -466,7 +467,8 @@ class TurtleArtWindow():
self.selector_shapes[self.previous_palette][0])
if self.previous_palette == PALETTE_NAMES.index('trash'):
for b in self.trash_stack:
- b.spr.hide()
+ for bb in self._find_group(b):
+ bb.spr.hide()
def _horizontal_layout(self, x, y, max, blocks):
for b in blocks: