LADI py2gtk2, use GTK+-2 in Python2 programs
Go to file
Dieter Verfaillie e4660be0aa Check PyGObject versions no longer supporting PyGTK.
Starting from PyGObject 3.0 (and the 2.90 development series leading
up to that version), static bindings like PyGTK are no longer
supported.

https://bugzilla.gnome.org/show_bug.cgi?id=659648
(cherry picked from commit f16a5f36463e5b892ca206209e4d8833c3ebc244)
2023-05-06 14:17:04 +03:00
docs reference: pygtk-gtkentrycompletion.xml: explain how to override default "match-selected" behaviour (bug 593386) 2011-03-18 20:21:39 +01:00
examples Add 'import pygtk; pygtk.require('2.0') statements where needed 2011-02-17 12:38:12 +01:00
gtk Add GTK-2.24 API 2011-02-22 09:02:26 +13:00
m4 use python-config to get python includes (Closes #448176) 2007-06-16 13:54:55 +00:00
tests tests: fix test_api, test_dialog, test_enum and test_liststore 2011-03-24 08:29:15 +01:00
.gitignore Add distutils generated build/dist directories and eclipse configuration files to .gitignore 2010-11-03 10:43:14 +01:00
AUTHORS Add myself to MAINTAINERS, AUTHORS 2010-10-02 15:27:52 +13:00
COPYING Update the address of the FSF by replacing old bits with new ones. Fixes 2009-03-30 20:01:30 +00:00
ChangeLog.pre-2-0 rename old change log. 2003-09-02 14:26:49 +00:00
ChangeLog.pre-2-6 Bump version to 2.7.0 2005-05-17 17:36:50 +00:00
ChangeLog.pre-2-8 Post release version bump, move away old changelog 2005-09-02 15:02:04 +00:00
ChangeLog.pre-2-16 Retire hand-written ChangeLog; autocreate from Git history 2009-05-12 23:32:40 +03:00
MAINTAINERS Add myself to MAINTAINERS, AUTHORS 2010-10-02 15:27:52 +13:00
MANIFEST.in bug 542821: 2008-07-13 21:58:19 +00:00
MAPPING Oops ... forgot to include this added file in the last commit. 1999-02-23 11:35:36 +00:00
Makefile.am Add build docs for windows 2010-04-16 22:32:28 +12:00
NEWS NEWS: Update for PangoFont find_shaper adjustment 2023-05-06 13:27:08 +03:00
PKG-INFO.in Update Home-page 2004-12-23 14:16:11 +00:00
README README: Add note for PyGObject3 compatibility 2023-05-06 14:13:25 +03:00
README.win32 user-access-control is now set in setup.py 2011-02-19 09:47:01 +13:00
THREADS init as module gtk._gtk. Using just _gtk doesn't seem to work with python 2000-10-30 13:06:10 +00:00
TODO apply Elliot Lee's threading patch. Still need to fix the remaining 2003-07-26 12:05:51 +00:00
atk-types.defs wrap new API for a 2.11.0 release 2007-07-10 22:48:17 +00:00
atk.defs wrap new API for a 2.11.0 release 2007-07-10 22:48:17 +00:00
atk.override Update the address of the FSF by replacing old bits with new ones. Fixes 2009-03-30 20:01:30 +00:00
atkmodule.c Update the address of the FSF by replacing old bits with new ones. Fixes 2009-03-30 20:01:30 +00:00
atkrectangle.override Update the address of the FSF by replacing old bits with new ones. Fixes 2009-03-30 20:01:30 +00:00
autogen.sh Allow to use automake 1.11 2009-08-13 21:32:56 +02:00
bootstrap add bootstrap script as alternative to autogen.sh 2023-05-06 13:42:28 +03:00
config.h.win32 updated - pygtk is working fine with msvc (but requires 2004-11-06 23:23:02 +00:00
configure.ac Check PyGObject versions no longer supporting PyGTK. 2023-05-06 14:17:04 +03:00
pango-types.defs wrap new API for a 2.11.0 release 2007-07-10 22:48:17 +00:00
pango.defs Drop the PangoFont find_shaper virtual method 2023-05-06 13:12:09 +03:00
pango.override Allow pango.Context creation 2009-06-18 23:21:49 +03:00
pangocairo.defs Plug memory leaks in a few Pango Cairo functions 2009-10-31 22:49:21 +02:00
pangocairo.override ignore-glob (pango_cairo_update_context, pango_cairo_create_layout) 2006-07-24 22:16:15 +00:00
pangocairomodule.c Update the address of the FSF by replacing old bits with new ones. Fixes 2009-03-30 20:01:30 +00:00
pangomodule.c Update the address of the FSF by replacing old bits with new ones. Fixes 2009-03-30 20:01:30 +00:00
pygtk-2.0.pc.in [pygtk-2.0.pc] Should require gtk+-2.0 2010-07-30 10:23:56 -04:00
pygtk-codegen-2.0.in Bug 548180 – install compatibility symlink for pygtk-codegen-2.0 2008-08-23 22:45:06 +00:00
pygtk.doap Add myself and Paul as maintainers 2009-08-13 00:55:36 +02:00
pygtk.spec.in Remove the last reference to the pygtk.pth file. 2010-11-19 14:04:59 +01:00
pygtk_postinstall.py pygtk_postinstall.py: remove pygtk-2.0.pc treatment from postinstall as pkg-config on windows figures out the correct prefix at runtime 2010-11-03 11:26:03 +01:00
setup.py setup.py: include glade files required by tests 2011-03-25 09:07:28 +13:00
test_gtype.py Move some tests from pygobject since they require gtk 2010-04-05 20:54:16 +02:00
test_subtype.py Move some tests from pygobject since they require gtk 2010-04-05 20:54:16 +02:00

README

PyGTK
=====
Original authors: James Henstridge <james@daa.com.au>
                  Johan Dahlin <johan@gnome.org>

Past maintainers: Gustavo J A M Carneiro <gjc@gnome.org>
                  Paul Pogonyshev <pogonyshev@gmx.net>
                  Gian Mario Tagliaretti <gianmt@gnome.org>

Maintainers:      John Stowers <john.stowers@gmail.com>
                  Dieter Verfaillie <dieterv@optionexplicit.be>

This archive contains modules that allow you to use GTK+-2 in Python
programs.  At present, it is a complete set of bindings up to and including
the gtk+-2.24 API.

If you have any enhancements or bug reports, please file them in
bugzilla at:
  http://bugzilla.gnome.org/enter_bug.cgi?product=pygtk

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:
  http://ftp.gnome.org/pub/GNOME/sources/pygtk/


Mailing list
============

There is a mailing list for pygtk.  You can subscribe to it through
the web interface:
  http://www.daa.com.au/mailman/listinfo/pygtk


Requirements
============
  * C compiler (GCC, MSVC and mingw supported)
  * Python 2.3.5 or higher
  * PyGObject 2.21.3 to 2.28.x (See PyGObject Note below)
  * Pycairo 1.0.2 or higher
  * Glib 2.8.0 or higher
  * GTK+ 2.8.0 or higher (optional) or
    GTK+ 2.10.0 or higher for 2.10 API
    GTK+ 2.12.0 or higher for 2.12 API
    GTK+ 2.14.0 or higher for 2.14 API
    GTK+ 2.16.0 or higher for 2.16 API
    GTK+ 2.18.0 or higher for 2.18 API
    GTK+ 2.20.0 or higher for 2.20 API
    GTK+ 2.22.0 or higher for 2.22 API
    GTK+ 2.24.0 or higher for 2.24 API
  * libglade 2.5.0 or higher (optional)
  * pycairo 1.0.2 or higher (optional)
  * numpy (optional)

This release is supporting the following GTK+ releases:

  2.8.x
  2.10.x
  2.12.x
  2.14.x
  2.16.x
  2.18.x
  2.20.x
  2.22.x
  2.24.x

To include support for the 2.10 API you'll need GTK+ 2.10.0 etc.

PyGObject Note:

PyGtk will not work with PyGObject-3 (which includes 2.28.99), but you
can install PyGObject-2.28 in parallel with PyGObject-3 if you
configure it with --without-introspection.

If you're using Gtk+-3 and PyGObject-3 then you have no need of PyGtk;
python bindings are provided directly by those packages.

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.

Compilation
===========

PyGTK 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

To build the reference documentation, supply the argument
"--enable-docs" to configure.

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 PyGTK installation.

Tests
=====

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


Getting Help
============

If you have questions about programming with PyGTK, you might want to
send a message to the mailing list (information on subscribing is
above).  Alternatively, your question may be answered in the FAQ:

    http://www.async.com.br/faq/pygtk/?req=index