[Idle-dev] Re: [Edu-sig] How to explore Tkinter interactively with IDLE 1.0

Gregor Lingl glingl at aon.at
Fri Sep 26 12:49:03 EDT 2003



Dethe Elza schrieb:

> 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

Hi Dethe,
this doesn't occur under Windows. With commandline-python works as expected.

Moreover the Tk - example from my prior posting works also with Python 
3.2.1
command line interpreter exactly as it did with IDLE 0.8 in earlier 
Python versions.

Regards, Gregor

>
> 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
>
>
> _______________________________________________
> Edu-sig mailing list
> Edu-sig at python.org
> http://mail.python.org/mailman/listinfo/edu-sig
>
>




More information about the IDLE-dev mailing list