[Pythonmac-SIG] Mac OS 10.3.5 and tkinter.

Paul Taka takaanna at hotmail.com
Fri Nov 26 14:09:19 CET 2004


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 *

fen1=Tk()

tex1= Label(fen1, text="Hello World!", fg='red')
tex1.pack()

tex2= Label(fen1, text="Bonjour à tous !", fg="blue")
tex2.pack()

bou1= Button(fen1, text="Quit", command=fen1.destroy)
bou1.pack()

fen1.mainloop()
=========================================

And I get:
syntax error near unexpected token `('
`fen1=Tk()'


Are there compatibility problem with python programs using TK?

Thanks a lot again.

Paul




>In PackageManager select File | Open URL
 in PackMan and try:
>
>http://www.python.org/packman/version-0.3/darwin-7.0.0- 
>Power_Macintosh.plist
>
>Ignore the warning message!
>
>If you go to www.python.org/packman you'll find more info.




More information about the Pythonmac-SIG mailing list