Configuring Python for Tk on Mac (continued)

Kevin Walzer sw at wordtech-software.com
Thu Jan 27 17:05:57 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martyn Quick wrote:
| From: Alex Martelli (aleaxit at yahoo.com)
|
|>No idea about any 10.2, sorry, but on 10.3 that's not the problem: Tk
|>support is there alright, it's Tcl/Tk which _isn't_.  Get MacPython, its
|>PackageManager will explain where to get Tcl/Tk Aqua from, as a prereq
|>for Tkinter and IDLE!
|
|
| Ok, I've installed MacPython.  It doesn't seem to work right though...
| for example, if I try to run the 00-HELLO-WORLD.py example then it
| crashes and tells me the IDE has unexpectedly crashed.
|
| I can't really see how to run things either.  (I'm used to just typing
| "python" in a terminal on Unix but that seems to just run the version
| that comes pre-installed.)
|
| Sorry for not knowing much about Macs and being a bit clueless.
|
| Martyn

You need to install Tk Aqua at this site:

http://tcltkaqua.sourceforge.net

You then need to install the tkinter bindings using Package Manager,
which comes as part of the Macpython distribution.

IDLE then should run fine.

Also, you can't run Python gui programs by typing "python" in the
console on the Mac: either double-click the script, or use "pythonw" as
the launching program in the terminal.


- --
Cheers,

Kevin Walzer, PhD
WordTech Software--Open Source Applications and Packages for OS X
http://www.wordtech-software.com
http://www.smallbizmac.com
http://www.kevin-walzer.com
mailto:sw at wordtech-software.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB+WXEJmdQs+6YVcoRAg5rAJ4zJYRVvEe0wvT3ZIJLwa79Am90CACdFeiv
NXU/lT4hYVCPCtU6bGEWc40=
=+Q7e
-----END PGP SIGNATURE-----




More information about the Python-list mailing list