[pygtk] Good way to determine which version of PyGObject is installed
Osmo Salomaa
otsaloma at iki.fi
Mon Nov 19 06:12:34 WST 2012
18.11.2012 20:00, Christian Mallwitz wrote:
> There was a time one could do
>
>>>> import gtk
>>>> gtk.pygtk_version
> (2, 17, 0)
>
> How can I do the same with gi.repository.Gtk when using
> gobject-introspection from within Python 2? How about GLib and/or
> Gio?
>>> from gi.repository import GObject
>>> GObject.pygobject_version
(3, 2, 2)
And since there is no PyGLib or PyGio, you don't do the same for those.
PyGObject provides the bindings for GObject, Gtk, GLib and any other
libraries that support gobject introspection.
--
Osmo Salomaa <otsaloma at iki.fi>
More information about the pygtk
mailing list