- Run these first examples from the command line shell. e.g. just type python3.1
- Run idle using -n command line option. Windows and OS X can also be configured to start idle with -n
- Carefully setup your idle shell and the turtle window so they are side by side with no other windows to distract.
Monday, September 7, 2009
Hanging Turtles
If you are using idle, some of the initial interactive examples will appear to hang. That is, if the turtle window gets behind another window its impossible to bring it to the front, and/or the window does not get refreshed. This is due to some weird threading interactions between the IDLE GUI and the shell. The problems are frustrating when you run into them in the first chapter. However as you write programs longer than 4 or 5 lines that include the exitOnClick call, they disappear quickly. A couple of suggestions to avoid this initial frustration:
Subscribe to:
Post Comments (Atom)
Hello,
ReplyDeleteEvery time I try to import cTurtle module, I get the following error: "ImportError: No module named tkinter"
Do you know why this is happening?
Thank you!