Mailing List Archive

Python and TK possible with MacOS X ?
Hi everyone,

I`d love to use python to create some GUI apps for MacOS X.

I downloaded a standard python 2.2 and compiled it, however, using
Tkinter is not possible under OS X, it needs an X server like XDarwin.
Unfortunately this is not an option, I need native-OS-X-TK... :-(

MacPython unfortunately has Tkinter support only under MacOS <9.x. The
Carbon version (OS X) just says "no module named Tkinter".

However, there IS a native recent TK port available from Apple.
Seems to consists of some dynamic libraries, nothing more.
Does anyone know if it is possible to get this to work with OS X?

Or does anybody know some workaround or other portable modules for GUI
programming that work with OS X?

Thank you very much,
Hendrik



--
Linux is good because it gives you reliability and stability.
Mac is good because it gives you stability and ease of use
Windows is good because.... Ok i lied, it's not that good.
Python and TK possible with MacOS X ? [ In reply to ]
Hendrik --

One way to do it is by installing XDarwin (XFree86 for OS X) and the *nix
versions of Python and Tkinter. You can do this quite easily using Fink
<http://fink.sf.net>. I've writen a quick tutorial on how to get a
working Tkinter on OS X. You can find it at:

<http://people.ucsc.edu/~jacobkm/tkinter_osx_howto.html>

If you have any questions, please feel free to email me.

Jacob

In article <3C59A411.9020103@uni-muenster.de>, Hendrik Maeder
<maederh@uni-muenster.de> wrote:

> Hi everyone,
>
> I`d love to use python to create some GUI apps for MacOS X.
>
> I downloaded a standard python 2.2 and compiled it, however, using
> Tkinter is not possible under OS X, it needs an X server like XDarwin.
> Unfortunately this is not an option, I need native-OS-X-TK... :-(
>
> MacPython unfortunately has Tkinter support only under MacOS <9.x. The
> Carbon version (OS X) just says "no module named Tkinter".
>
> However, there IS a native recent TK port available from Apple.
> Seems to consists of some dynamic libraries, nothing more.
> Does anyone know if it is possible to get this to work with OS X?
>
> Or does anybody know some workaround or other portable modules for GUI
> programming that work with OS X?
>
> Thank you very much,
> Hendrik