PyGTK Downloads
Install PyGTK!
PyGTK for Microsoft Windows
In order to install PyGTK on Windows you need:
- A Python interpreter for Windows (you can get it at the Python downloads) page.
- The GTK+ runtime. We recommend to install it using
the
official GTK+ bundle (gtk+-bundle*.zip files). Just choose the latest
version available.
To fully install this bundle you need to uncompress its contents in a folder and manually add the bin subfolder to the system path. - The PyGTK,
PyCairo and
PyGObject
modules (available from this site, just follow the links and choose the lastest
version).
When downloading them, you must make sure that the PyCairo, PyGObject and PyGTK versions fit the corresponding Python interpreter version and you have a recent enough GTK+ runtime. The python version used to build those extensions is written in the installer name (e.g. 'py2.6' for Python 2.6).
A great companion to develop your PyGTK applications is the Glade user interface designer.
You can find more detailed instructions on the PyGTK FAQ.
PyGTK for Linux
PyGTK is included in most Linux distributions (including Debian, Fedora, Ubuntu, Opensuse, Gentoo, Mandrake, Redhat, SUSE...); the source code can also be downloaded and compiled from the links below.
Get the sources!
Current stable release
2.16 series
The latest release of PyGTK for GTK+ 2.16 is available from the following website:
Current development version
Alternatively, you can get the bleeding edge version of PyGTK from
the GNOME Git server git.gnome.org. Checkout
the module pygtk, or if you want the GNOME extensions, just
get the module gnome-python Like this:
git clone git://git.gnome.org/pygtk git clone git://git.gnome.org/gnome-python git clone git://git.gnome.org/gnome-python-desktop git clone git://git.gnome.org/gnome-python-extras
More information on accessing and using GNOME's Git server is available at the Gnome developer site.
Be aware that PyGTK has some dependencies like pygobject that are needed to run it.
Python GNOME
If you want to make use of the Gnome libraries in your application, you will also need to install some other packages, such as the PyORBit, gnome-python, gnome-python-desktop or gnome-python-extras packages. They are available from the Gnome FTP site and its mirrors:
- http://ftp.gnome.org/pub/GNOME/sources/pyorbit/
- http://ftp.gnome.org/pub/GNOME/sources/gnome-python/
- http://ftp.gnome.org/pub/GNOME/sources/gnome-python-desktop/
- http://ftp.gnome.org/pub/GNOME/sources/gnome-python-extras/
Older PyGTK versions
2.x series
Older PyGTK releases for GTK+ 2.x are available from the following website:
1.2 series
The latest release of PyGTK for GTK+ 1.2.x can be found at the following site:
Anyhow, if you are writing a new program, it is strongly recommended that you use the latest GTK+ 2.x version of PyGTK instead.
Build PyGTK!
Both PyGTK and PyGObject sources have information on how to build the extensions. This includes support to create binary installers using distutils, to ease development on Windows.
Build instructions files:
