469,304 Members | 1,803 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,304 developers. It's quick & easy.

Slow turtle

I'm using the turtle graphics module and am trying to teach it to my kids.
The slowness of the turtle in drawing things is good at first because it's
fun watching it do its thing. But now we'd like it to go faster so it
doesn't take to long to see what it is producing. Is there a standard way to
speed it up, or am I left with sifting through the source code to fix it
myself?

Brent
Jul 18 '05 #1
1 3231
Brent W. Hughes wrote:
I'm using the turtle graphics module and am trying to teach it to my kids.
The slowness of the turtle in drawing things is good at first because it's
fun watching it do its thing. But now we'd like it to go faster so it
doesn't take to long to see what it is producing. Is there a standard way
to speed it up, or am I left with sifting through the source code to fix
it myself?
If you are only interested in the final picture, you can use tracer(False).
Otherwise reducing the delay or dividing nhops by a fixed number seem most
promising. E. g.

262c262
< nhops = int(distance)
--- nhops = int(distance)/5 273c273
< self._canvas.after(10)
--- self._canvas.after(1)


Peter
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by dbrown2 | last post: by
4 posts views Thread by Brent W. Hughes | last post: by
5 posts views Thread by Ellen Manning | last post: by
10 posts views Thread by JulianP | last post: by
7 posts views Thread by Dick Moores | last post: by
5 posts views Thread by tomy | last post: by
4 posts views Thread by hello123 | last post: by
1 post views Thread by Alexander.Oot | last post: by
1 post views Thread by Allen | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.