[pygtk] gir1.2-gtk-2.0 and gir1.2-gtk-3.0 together
Giuseppe Penone
giuspen at gmail.com
Fri Jun 17 02:17:14 WST 2011
Hi all,
I'm trying (like many others) to port code from pygtk2 to gi.
I'm running ubuntu 11.04, I first had only gir1.2-gtk-2.0 and, running the
following lines:
from gi.repository import Gtk
print Gtk
I get <gi.module.DynamicModule 'Gtk' from
'/usr/lib/girepository-1.0/Gtk-2.0.typelib'>
then I install also gir1.2-gtk-3.0 (together with gtk3), and running the
same lines I get:
<gi.module.DynamicModule 'Gtk' from
'/usr/lib/girepository-1.0/Gtk-3.0.typelib'>
so my question is, how can I point to a Gtk version when both 2 and 3 are
installed?
Cheers,
Giuseppe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110616/0c6faaef/attachment.html>
More information about the pygtk
mailing list