Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

pygobject ctypes backend

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 demos PEP8: Remaining whitespace fixes March 22, 2012
Octocat-spinner-32 docs docs/ and m4/python.m4: Python3 portability fixes September 09, 2011
Octocat-spinner-32 examples PEP8: Remaining whitespace fixes March 22, 2012
Octocat-spinner-32 gi Initial callback support May 28, 2012
Octocat-spinner-32 m4 test(1) uses '=' to test if strings are identical February 08, 2012
Octocat-spinner-32 tests link against cairo-gobject May 28, 2012
Octocat-spinner-32 .gitignore Update .gitignore March 26, 2012
Octocat-spinner-32 AUTHORS Update AUTHORS August 11, 2009
Octocat-spinner-32 COPYING Update the address of the FSF, by replacing old bits of the address with March 29, 2009
Octocat-spinner-32 ChangeLog.pre-2.18 Retire hand-written ChangeLog; autocreate from Git history May 09, 2009
Octocat-spinner-32 HACKING Add notes about branching to HACKING December 12, 2011
Octocat-spinner-32 INSTALL Introduces the girepository module from the former PyBank. June 08, 2009
Octocat-spinner-32 Add release-news make rule April 29, 2012
Octocat-spinner-32 NEWS NEWS: Add API additions since 3.2.0 May 06, 2012
Octocat-spinner-32 Remove last GIO-related bits February 11, 2011
Octocat-spinner-32 README README: Update current maintainers March 19, 2012
Octocat-spinner-32 Use autoreconf instead of a custom script and honor ACLOC… September 09, 2011
Octocat-spinner-32 Require gobject-introspection 1.33.0 May 07, 2012
Octocat-spinner-32 Remove .gitignore files and use January 27, 2011
Octocat-spinner-32 pre-commit.hook Use bash explicitely in the pre-commit hook. June 09, 2010
Octocat-spinner-32 Drop obsolete drag method conversions April 22, 2012
Octocat-spinner-32 Fix paths and add missing overridesdir variable used in uninstalled p… September 09, 2011
Octocat-spinner-32 remove overridesdir from the .pc file and add it to the gi module September 15, 2011
Octocat-spinner-32 pygobject.doap README: Update current maintainers March 19, 2012
Original authors:   James Henstridge <>
                    Johan Dahlin <>

Current maintainers:  Tomeu Vizoso <>
                      Martin Pitt <>
                      Paolo Borelli <>
                      Ignacio Casal Quinteiro <>
                      Sebastian Pölsterl <>

This archive contains bindings for the GLib, and GObject,
to be used in Python. It is a fairly complete set of bindings,
it's already rather useful, and is usable to write moderately
complex programs.  (see the examples directory for some examples
of the simpler programs you could write).

If you have any enhancements or bug reports, please file them in
bugzilla at:

If you have a patch, file the bug first and then use the "create new
attachment" link on the bug's info page.  My preferred format for
patches is unified diff format (ie. diff -u).  Please don't send me
diffs which don't have any context, as these make it very difficult to
see what the patch does.

New Versions

New versions of this package can be found at:

Mailing list

pygobject share mailing list with pygtk. You can subscribe to it through
the web interface:

  * C compiler (GCC and MSVC supported)
  * Python 2.3.5 or higher
  * Glib 2.22.4 or higher
  * GIO 2.22.4 or higher
  * libffi (optional)

Copyright Information

This software is covered by the GNU Lesser General Public Licence
(version 2.1, or if you choose, a later version).  Basically just don't
say you wrote bits you didn't.


PyGObject uses the standard autotools for the build infrastructure.  To
build, it should be as simple as running:

    $ ./configure --prefix=<prefix where python is installed>
    $ make
    $ make install

If your Python interpreter isn't in the path, or is not called
"python", you can set the PYTHON environment variable to the full path
of the interpreter:

    $ PYTHON=/prefix/bin/python
    $ export PYTHON

If configure can't find GTK+, you may need to set the PKG_CONFIG_PATH
environment variable to help it find the libraries.

The "make install" target will generate normal and optimised bytecode
for all the .py files.

Note. If you're installing to another prefix than the one where python
is installed you'll need to set the PYTHONPATH variable to the
$prefix/lib/pythonX.Y/site-packages directory created by
the PyGObject installation.


After having compiled and installed pygobject, you may want to test them.
There are a number of example programs available in the examples/

Getting Help

If you have questions about programming with PyGObject, you might want to
send a message to the mailing list (information on subscribing is
above).  Alternatively, your question may be answered in the PyGTK FAQ:
Something went wrong with that request. Please try again.