[Pythonmac-SIG] Help with TKinter under 10.3

Bob Ippolito bob at redivi.com
Fri Nov 14 16:04:06 EST 2003


You need to run with the script or start the interpreter with "pythonw" 
not "python".  SetFrontProcess -606 is a sign that it needs Window 
Manager access.

See the "What is pythonw? When do I need to use it?" FAQ entry at 
http://pythonmac.org/wiki/FAQ

-bob

On Nov 14, 2003, at 3:30 PM, Bob W wrote:

> Thanks, that helped.  Sometimes, I just don't see those things! :)  
> So, now I do:
>
> import _tkinter
> import Tkinter
> Tkinter._test()
>
> I get the window up with a couple of msgs and two buttons.  However, 
> it stays in the background and issues "SetFrontProcess failed,-606" 
> back in the python Terminal session.  BTW, I got the description of 
> this out of the Python FAQ.  That is why I am using it.
>
> Thanks again for any help.
>
>
> Begin forwarded message:
>
>> From: Bob Ippolito <bob at redivi.com>
>> Date: November 14, 2003 9:26:31 AM EST
>> To: Bob W <kranki2 at earthlink.net>
>> Cc: pythonmac-sig at python.org
>> Subject: Re: [Pythonmac-SIG] Help with TKinter under 10.3
>>
>>
>> On Nov 14, 2003, at 9:02 AM, Bob W wrote:
>>
>>> Sorry if this has been answered before.  I did look thru the 
>>> archive, but did not find anything that seems to fit my request.  
>>> Also, I am new to Python and TclTk.
>>>
>>> I run 10.3.1 on a Powerbook G4 and keep the OS up2date.  I am trying 
>>> to get Tcl/Tk to work with the Apple-Installed version of python.  I 
>>> downloaded MacPython and installed it.  Then I installed _tkinter 
>>> using PackageManager.Then I downloaded TclTkAqua and installed it.  
>>> I then reinstalled (ie upgraded MacPython then _tkinter), because 
>>> sometimes the order of these things seems to be important.  "import 
>>> _tkinter" now works, but "import TKinter" does not (ie can't find 
>>> the module).
>>>
>>> Could someone please point out what I am doing wrong?  Thanks you 
>>> for your help.
>>
>> Check your shift key?  It's called Tkinter, not TKinter.  
>> Capitalization matters in Python, even though it doesn't in the 
>> filesystem.
>>
>> -bob
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20031114/98b01219/smime.bin


More information about the Pythonmac-SIG mailing list