Posted on: 03/11/2004 10:30 AM
Version 2.2.0 of the Python bindings for GTK has been released.
GTK is a toolkit for developing graphical applications that run on POSIX systems such as Linux, Windows and MacOS X (provided that the X server for MacOS X has been installed). It provides a comprehensive set of GUI
widgets, can display Unicode bidi text. It links into the Gnome Accessibility Framework through the ATK library.
PyGTK provides a convenient wrapper for the GTK library for use in Python programs, and takes care of many of the boring details such as managing memory and type casting. When combined with PyORBit and gnome-python, it can be used to write full featured Gnome applications.
Like the GTK library itself PyGTK is licensed under the GNU LGPL, so is suitable for use in both free software and proprietary applications. It is already in use in many applications ranging from small single purpose scripts up to large full features applications.
PyGTK now requires GTK >= 2.2 and Python >= 2.2 to build.
It includes a number of changes since the last pygtk release; Lorenzo has provided a short summary of changes included, which I've included below. We'd really appreciate testing and bug reports on this release; please take the time out to download and test it to ensure it works for your application(s). Bug reports, as always, should go to Bugzilla; check out http://pygtk.org/developer.html and
http://pygtk.org/feedback.html for links to posting and querying bug reports for PyGTK.
Help in fixing or advising on the blockers is also much appreciated.
Lorenzo's summarized change list follows:
- Better support for gtk.gdk.Pixbuf integration with Numerical
arrays (Tim Evans)
- Added gtk.gdk.Eventkey.hardware_code (Johan)
- Added gtk.binding_entry_remove and gtk.accel_group_connect (Gustavo)
- Don't allow reading non readable properties (James)
- Better support for Pygtk generation tools (codegen, m4 macros,
h2def, Makefile.am ...) (James, Jon Willeke, Xavier, Johan)
- Allow None return values in gtk.GenericCellRenderer.start_editing (Johan)
- Better and more flexible support for TreeModel and TreeView API:
- Implemented gtk.TreeSelection.get_selected_rows
- Allow None iter for gtk.GenericTreeModel.iter_n_children
- Allow None parent for gtk.TreeMode.iter_children (Benjamin Cama)
- Allow None iterator values in gtk.TreeModel (John Ehresman)
- Implemented the gtk.ListStore.reorder method (Johan)
- Swap parent and child argument for gtk.TreeModel.get_parent (Johan)
- Allow None arguments for gtk.Widget.modify_* (jkluebs at luebsphoto.com)
- Added support for some GTK+ 2.2 APIs (James):
- Better support for gtk.Clipboard: set_with_data
- Better support for gtk.gdk.Window: set_geometry_hints,
peek_children, set_icon_list, for gtk.gdk.Screen:
get_setting; and for gtk.Display: get_window_at_pointer
- gdk.Pixbuf.get_formats() returns a list of dictionaries
- More functions wrapped for GdkDisplay and GdkScreen
- Removed gtkgl bindings
- And lots of bug fixes: gdk.event_get_axis (Seth), distutils (Alif
Wahid), mem leaks, gtk.Menu.popup (Gustavo)
A Bonsai link to view the actual checkins follows: http://cvs.gnome.org/bonsai/cvsquery.cgi?treeid=defaultbranch=HEADbranchtype=matchdir=gnome-python%2Fpygtkfile=filetype=matchwho=whotype=matchsortby=Datehours=2date=explicitmindate=2003-09-02maxdate=2004-04-01cvsroot=%2Fcvs%2Fgnome
The new release is available from ftp.gtk.org or ftp.gnome.org and its mirrors:http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.2/pygtk-2.2.0.tar.gz