Mac Python Questions

Russell E. Owen owen at astroNOJNK.washington.edu.invalid
Thu Apr 20 14:47:27 EDT 2000


In article <38FE8032.DE233C29 at cosc.canterbury.ac.nz>, Greg Ewing 
<greg at cosc.canterbury.ac.nz> wrote:

>Jeff Massung wrote:
>> 
>> b) No matter what I do, I can't get Tkinter to work :(.
>
>Neither can I, and from what I've seen here, neither
>can anyone else. Tkinter just seems to be broken on
>the Mac at present.

It works fine.

Tricks:
- Make sure the necessary paths are added (as another poster detailed)

- Make sure PythonInterpreter is configured to NOT go into interactive 
mode after the script completes. (Drop PythonInterpreter onto 
EditPythonPrefs, then push the button that lets you configure startup 
defaults; it's the first checkbox). I have not seen this mentioned 
before, but I find it crucial for Tk scripts to exit correctly!

- Put your Tk scripts in files and drop them onto PythonInterpreter. 
Don't use the IDE!!! (Typing scripts into the interpreter may also work; 
I've not tried it.)

-- Russell



More information about the Python-list mailing list