| FAQ Index - Search - Recent Changes - Everything - Add entry |
1.19. Is there a PyGTK for MacOS X?
One way is running it with native support, which is still in early stages of development and is not feature complete yet. There are currently (as of June 2008) no available binaries for GTK+ running natively under OSX, so you need to compile GTK+ yourself. For more information about the native port check out Imendio's page [developer.imendio.com] . The instructions here tell you how to build GTK+, but not PyGTK; after following the steps here you also must do "jhbuild build meta-gtk-osx-python".
The second way is using Apple's X11 server, which is closer to other Unix systems for portability, but won't integrate very well with the rest of the OS X desktop. If you are running Mac OS X 10.3 (Panther) or above X11 is available as an optional feature from the install CDs. In addition the X11 server can be downloaded from [www.apple.com] . Unfortunately Apple doesn't have an obvious link to the older versions for Mac OS X 10.2, but VersionTracker has a link: [www.versiontracker.com]
You can get the gtk libraries under OS X via darwinports from [darwinports.opendarwin.org]
Daniel Macks and Ben Hines <bhines at alumni dot ucsd dot edu> have also put work into making packages available via Fink on the unstable tree: GNOME at [fink.sourceforge.net] and pygtk 2 specifically at [fink.sourceforge.net] . As of June 2008, Fink does not have pygtk available for Python 2.5 or OS X 10.5 (Leopard).
