Detecting a click on the turtle screen when the turtle isn't doing anything?

Adam Funk a24061 at
Tue Feb 5 20:58:30 CET 2013

On 2013-02-05, woooee at wrote:

> Note that the code you posted does not call onclick().  

It does, actually, but I accidentally snipped it when C&Ping code into
my original post.  Sorry!

> Globals are
>  confusing IMHO.  Code becomes cleaner and easier to write and read
>  when you become familiar with classes.

I've already got a module with Course and Traverse classes (this is
for surveying problems).  If I have to write a class just to create
one instance of it & call the main() method, I might as well use Java!

But I'll work through the example you posted --- thanks.

Master Foo said: "A man who mistakes secrets for knowledge is like
a man who, seeking light, hugs a candle so closely that he smothers
it and burns his hand."                            --- Eric Raymond

More information about the Python-list mailing list