diff options
author | Raúl Gutiérrez S <rgs@paraguayeduca.org> | 2009-12-08 20:35:51 (GMT) |
---|---|---|
committer | Raúl Gutiérrez S <rgs@paraguayeduca.org> | 2009-12-08 20:35:51 (GMT) |
commit | 1e00234eb98fd7e6839048c465fb08bfc5a4325e (patch) | |
tree | 1711ed18e310f4701ea7ba6955febe9060d08206 /taproject.py | |
parent | b0c68db5e4adce027d9e83e054240c6a5a247f94 (diff) |
More cleanup. Now we have the Sprite class where all the selected, copied, paste, etc. logic should go. Cleaned the corresponding client code as well, not thoroughfully tested , though
Diffstat (limited to 'taproject.py')
-rw-r--r-- | taproject.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/taproject.py b/taproject.py index 28b885e..8fde7c7 100644 --- a/taproject.py +++ b/taproject.py @@ -59,7 +59,7 @@ shape_dict = {'journal':'texton', \ def new_project(tw): stop_logo(tw) for b in blocks(tw): hide(b) - setlayer(tw.turtle.canvas, 600) + tw.turtle.canvas.setlayer(600) clearscreen(tw.turtle) tw.save_file_name = None @@ -162,7 +162,7 @@ def load_spr(tw,b): media = label label = None proto = tw.protodict[btype] - spr = sprNew(tw,b[2]+tw.turtle.canvas.x,b[3]+tw.turtle.canvas.y, \ + spr = Sprite(tw,b[2]+tw.turtle.canvas.x,b[3]+tw.turtle.canvas.y, \ proto.image) spr.type = 'block' spr.proto = proto @@ -181,7 +181,7 @@ def load_spr(tw,b): dsobject.destroy() except: print "couldn't open dsobject (" + str(spr.ds_id) + ")" - setlayer(spr,650) + spr.setlayer(650) return spr def load_turtle(tw,b): |