By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,743 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,743 IT Pros & Developers. It's quick & easy.

Slow turtle

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.