[Pythonmac-SIG] Mac OS 10.3.5 and tkinter.

Paul Taka takaanna at hotmail.com
Fri Nov 26 15:00:02 CET 2004

Oh, I forgot...
If I keep #!/usr/bin/python instead of pythonw, it seems to work (almost)
I get "SetFrontProcess failed,-606" error each time I click on my TK window.

I thought pythonw would fix the problem, but the script doesn't launch and 
just say

from: can't read /var/mail/Tkinter
./hello.py: line 21: syntax error near unexpected token `('
./hello.py: line 21: `fen1=Tk()'

where line 21 is:

I don't understand..

>From: "Paul Taka" <takaanna at hotmail.com>
>To: charles.hartman at conncoll.edu, pythonmac-sig at python.org
>Subject: Re: [Pythonmac-SIG] Mac OS 10.3.5 and tkinter.
>Date: Fri, 26 Nov 2004 13:09:19 +0000
>Yes, in fact, I've just noticed it before check my mail...
>But I used darwin-7.5.0 instead... (It doesn't matter?)
>When I tried to launch the python scripts I wrote under linux, I got an 
>encoding problem. So as it is written on python.org, I added
># -*- enconding: utf-8 -*-
>And replaced #!/usr/bin/python with #!/usr/bin/pythonw
>But I still have problems :(
>My HelloWorld is like this:
>from Tkinter import *
>tex1= Label(fen1, text="Hello World!", fg='red')
>tex2= Label(fen1, text="Bonjour à tous !", fg="blue")
>bou1= Button(fen1, text="Quit", command=fen1.destroy)
>And I get:
>syntax error near unexpected token `('
>Are there compatibility problem with python programs using TK?
>Thanks a lot again.

More information about the Pythonmac-SIG mailing list