[Pythonmac-SIG] Help with TKinter under 10.3

Bob W kranki2 at earthlink.net
Fri Nov 14 17:47:22 EST 2003


Thanks again for you patience and understanding.  That worked fine and 
now I am operational.
Regards,
Bob



On Nov 14, 2003, at 4:04 PM, Bob Ippolito wrote:

> 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




More information about the Pythonmac-SIG mailing list