2010-07-24 01:14:11 |
Mathias Brodala |
description |
Instead of relying on bindings, GObject introspection (http://live.gnome.org/GObjectIntrospection) through PyGi (http://live.gnome.org/PyGI) should be used. This gets rid of overhead and will allow us to always use the latest API provided by GLib/Gtk.
Simple example for migration:
import gio
import gtk
Becomes:
from gi.repository import (
Gio as gio,
Gtk as gtk
) |
Instead of relying on bindings, GObject introspection (http://live.gnome.org/GObjectIntrospection) through PyGi (http://live.gnome.org/PyGI) should be used. This gets rid of overhead and will allow us to always use the latest API provided by GLib/GObject/Gtk.
By then, dependency on python-* should be changed to (unversioned?) dependencies on gir* and probably versioned dependencies on GLib/GObject/Gtk which is overdue anyways.
Simple example for migration:
import gio
import gtk
import pango
Becomes:
from gi.repository import (
Gio as gio,
Gtk as gtk,
Pango as pango
) |
|