diff options
author | Marion <marion.zepf@gmail.com> | 2013-09-09 23:05:44 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-09-09 23:05:44 (GMT) |
commit | 3d3238126b293f2354b97d7d331fc502b70f198e (patch) | |
tree | e2b04d1b7065796d3d8ca74b2aafd9019be4868d /TurtleArt/taexportpython.py | |
parent | 023c384f5cb05d172920e23aaa2bf7820186e5e1 (diff) |
add Primitive for the 'time' block
Diffstat (limited to 'TurtleArt/taexportpython.py')
-rw-r--r-- | TurtleArt/taexportpython.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/TurtleArt/taexportpython.py b/TurtleArt/taexportpython.py index d41ec98..19cf48e 100644 --- a/TurtleArt/taexportpython.py +++ b/TurtleArt/taexportpython.py @@ -41,7 +41,7 @@ _SETUP_CODE_START = """\ from math import sqrt from random import uniform -from time import sleep +from time import (sleep, time) from pyexported.window_setup import * @@ -59,6 +59,7 @@ _SETUP_CODE_END = """\ if __name__ == '__main__': + tw.lc.start_time = time() tw.lc.icall(start) gobject.idle_add(tw.lc.doevalstep) gtk.main() |