Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-22 15:11:18 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-22 15:11:18 (GMT)
commit93eeb002bf8c2497f32223aeb3d70017c1f56284 (patch)
tree739325bc5275a3c78cdecca34dcc87a7107275c6 /tawindow.py
parenta271df28f1e9e7c7734186049f18642509c24541 (diff)
caught some bad refs
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tawindow.py b/tawindow.py
index b136aa2..77ab244 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -938,7 +938,8 @@ class TurtleArtWindow():
self.palette_sprs[self.trash_index][self.orientation].hit((x,y)):
return True
"""
- if self.palette_sprs[self.selected_palette][self.orientation].hit(
+ if self.selected_palette is not None and\
+ self.palette_sprs[self.selected_palette][self.orientation].hit(
(x,y)):
return True
return False
@@ -1375,6 +1376,8 @@ class TurtleArtWindow():
elif self._show_button_hit(blk.spr, x, y):
dx = 20
blk.expand_in_x(dx)
+ else:
+ dx = 0
for b in group:
if b != blk:
b.spr.move_relative((dx*blk.scale, 0))