From 1e00234eb98fd7e6839048c465fb08bfc5a4325e Mon Sep 17 00:00:00 2001 From: Raúl Gutiérrez S Date: Tue, 08 Dec 2009 20:35:51 +0000 Subject: 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 --- (limited to 'talogo.py') diff --git a/talogo.py b/talogo.py index 16002d7..849e1e7 100644 --- a/talogo.py +++ b/talogo.py @@ -158,7 +158,7 @@ def readline(lc, line): return res def setup_cmd(lc, str): - setlayer(lc.tw.turtle.spr,100) + lc.tw.turtle.spr.setlayer(100) lc.procstop=False list = readline(lc, str) lc.step = start_eval(lc, list) @@ -176,11 +176,11 @@ def evline(lc, list): lc.arglist = None while lc.iline: if lc.tw.step_time > 0: - setlayer(lc.tw.turtle.spr,630) + lc.tw.turtle.spr.setlayer(630) endtime = millis()+an_int(lc,lc.tw.step_time)*100 while millis()