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-11 15:03:47 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-11 15:03:47 (GMT)
commit8605a116859795bd358aff439c302c376872d7d7 (patch)
tree41ae33d15b10d93f63aab86f40aa09ba32a573a2 /tawindow.py
parent8797f517158941d17897b25970f7f25f6d72b220 (diff)
eliminated obsolete constants
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tawindow.py b/tawindow.py
index 82aaf44..d59c572 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -445,13 +445,9 @@ class TurtleArtWindow():
if self.palettes[n] == []:
for i, name in enumerate(PALETTES[n]):
# Some blocks are too big to fit the palette.
- if PALETTE_SCALE.has_key(name):
- scale = PALETTE_SCALE[name]
- else:
- scale = PALETTE_DEFAULT_SCALE
self.palettes[n].append(Block(self.block_list,
self.sprite_list, name,
- 0, 0, 'proto', [], scale))
+ 0, 0, 'proto', [], PALETTE_SCALE))
self.palettes[n][i].spr.set_layer(TAB_LAYER)
self.palettes[n][i].spr.set_shape(self.palettes[n][i].shapes[0])
# Some blocks get a skin.