Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/taproject.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-01 17:05:47 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-01 17:05:47 (GMT)
commit98f76c5aca9745cd83a67e7d1d4c725c4929381b (patch)
tree12fe0955c6ffa55357a6512c631a7ec1b877997e /taproject.py
parent861293558f6ab522d615839556de58db8bf04fb1 (diff)
more cleaning up, bug chasing
Diffstat (limited to 'taproject.py')
-rw-r--r--taproject.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/taproject.py b/taproject.py
index 978ded8..29495de 100644
--- a/taproject.py
+++ b/taproject.py
@@ -186,7 +186,7 @@ def load_block(tw, b):
blk = block.Block(tw.block_list, tw.sprite_list,
btype, b[2]+tw.canvas.cx,
b[3]+tw.canvas.cy, 'block', values)
- # Some blocks t a skin.
+ # Some blocks get a skin.
if btype == 'nop':
if tw.nop == 'pythonloaded':
blk.spr.set_image(tw.media_shapes['pythonon'], 1, 17, 8)
@@ -201,9 +201,9 @@ def load_block(tw, b):
elif btype == 'list':
for i in range(len(b[4])-4):
dy = blk.add_arg()
-
- elif btype in BOX_STYLE_MEDIA and blk.values[0] is not None:
+ elif btype in BOX_STYLE_MEDIA and len(blk.values)>0:
if btype == 'audio' or btype == 'description':
+ print "restoring %s to %s block" % (blk.values[0],blk.name)
blk.spr.set_image(tw.media_shapes[btype+'on'], 1, 37, 6)
elif tw.running_sugar():
try: