[pygtk] Good way to determine which version of PyGObject is installed

Christian Mallwitz c.mallwitz at gmail.com
Mon Nov 19 02:00:14 WST 2012


Hi

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?

Ubuntu claims Precise is packaged with pygobject 3.2.2-1 ...

Thanks
Christian


More information about the pygtk mailing list