Re: some turtle questions

2010-01-27 Thread Lee Harr
I am trying to think of things to do with the turtle module 1) is there a way to determine the current screen pixel color? This would not use the included turtle module, but you could use the turtle module from the pygsear collection: http://www.nongnu.org/pygsear/ It requires pygame, but

Re: [Edu-sig] some turtle questions

2010-01-25 Thread kirby urner
Hi Brian -- If you wanna go to a lot of work, but not a huge amount, write wrapper class for the Standard Library turtle that intercepts its commands and updates an on-board data structure, representing pixels x pixels, specifying self position, keep color info stashed per each one. That's a lot

some turtle questions

2010-01-24 Thread Brian Blais
Hello, I am trying to think of things to do with the turtle module with my students, and I have some ideas where I am not sure whether the turtle module can do it. 1) is there a way to determine the current screen pixel color? I am thinking about having the turtle go forward until it

Re: [Edu-sig] some turtle questions

2010-01-24 Thread Helene Martin
I'm almost sure that there's no way for a turtle to know anything about the background. That's an unfortunate limitation! As for putting a limit on a turtle's travel, you need to write an appropriate conditional. For example, if you want your turtle to stay within a 200x200 square centered

Re: [Edu-sig] some turtle questions

2010-01-24 Thread Alf P. Steinbach
* Helene Martin: I'm almost sure that there's no way for a turtle to know anything about the background. That's an unfortunate limitation! The background for the turtle is just a Tkinter canvas. So yes, it's technically possible to inspect things there, since there is method to obtain the