Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/talogo.py
diff options
context:
space:
mode:
Diffstat (limited to 'talogo.py')
-rw-r--r--talogo.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/talogo.py b/talogo.py
index 44a3232..efc6e86 100644
--- a/talogo.py
+++ b/talogo.py
@@ -149,6 +149,12 @@ def evline(lc, list):
lc.iline = list[:]
lc.arglist = None
while lc.iline:
+ if lc.tw.step_time > 0:
+ setlayer(lc.tw.turtle.spr,630)
+ endtime = millis()+an_int(lc,lc.tw.step_time)*100
+ while millis()<endtime:
+ yield True
+ setlayer(lc.tw.turtle.spr,100)
token = lc.iline[0]
if token==lc.symopar: token=lc.iline[1]
icall(lc, eval); yield True
@@ -429,7 +435,9 @@ def stopsignoff(lc):
setshape(lc.stopsign, lc.stopsign.offshape)
setlayer(lc.tw.turtle.spr,630)
-def stop_logo(tw): tw.lc.step = just_stop()
+def stop_logo(tw):
+ tw.step_time = 0
+ tw.lc.step = just_stop()
def just_stop(): yield False