[Edu-sig] How to explore Tkinter interactively with IDLE 1.0

Dethe Elza delza at blastradius.com
Fri Sep 26 12:33:55 EDT 2003


On Thursday, September 25, 2003, at 10:09 PM, Kirby Urner wrote:

> It's true for me as well that when I first say up(), the Tk window is 
> behind
> the main one.  I see it by sliding the main one out of the way.  I 
> don't
> touch the secondary one.
>
> The secondary window (showing the turtle) is not responsive in the 
> usual
> way.

This is the case for me when I try using turtle commands from the 
python interpreter interactively, so it doesn't seem to be limited to 
Idle behaviour.  I'm using Python 2.3 on OS X (10.2) with the native Tk 
library.  I cannot close the Tk window.  When I click in the window the 
interpreter prints

 >>> SetFrontProcess failed,-606

And the window has none of the control buttons or drag bar enabled.  OS 
X has some issues normally with starting up GUI windows from the 
command-line, but you can generally interact with them.

I hadn't played with the turtle package (I should look at it, since 
I've written my own incomplete turtle program with totally different 
interaction).  This was fun:

def zap(x):
   for i in range(0, x * 5, 5):
     circle(i)

for x in range(8):
   right(60)
   zap(x + 5)

It needs sound effects, though.

--Dethe




More information about the Edu-sig mailing list