Mostrando entradas con la etiqueta gtk. Mostrar todas las entradas
Mostrando entradas con la etiqueta gtk. Mostrar todas las entradas

27 de septiembre de 2011

How to install GTK and PyGTK in Mac OS X Lion

I run into some problems trying to install GTK and PyGTK, but I found a workaround, so here's the trick:

You'll need to have brew installed in your system. If you don't have brew installed, you can installed just by running this command:

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
 Now you are ready to go!

Install GTK: just run this command:
$ brew install gtk
Install PyGTK:
  • Download this: link.
  • It is a Mac installer package. Install it.
That's it!

You  can test your installation from a Python console this way:
$ python
>>> import pygtk