You are not logged in.
Pages: 1
Hi folks,
I would like to make some UI-s for some of my homework programs in Python3, and I would like to use GTK3 to make it.
Everything seems to be right installed, but I still can't import GTK3. With Python2 it is ok.
I get the following message:
Traceback (most recent call last):
File "visual.py", line 2, in <module>
from gi.repository import Gtk
ImportError: No module named gi.repository
Do you have any ideas?
Thank you
Offline
Which packages for it have you installed? The gtk stuff works fine for me, and these are the packages I have that I think are related: gobject-introspection, python-gobject, python-gobject2, pygobject-devel, pygobject2-devel. These are python3 packages, so obviously you'd want the python2 versions if that's what you're using.
EDIT: D'oh. gtk3 should probably be in that list as well.
Last edited by kyla (2011-10-21 04:07:54)
Offline
you need python-gobject.
the old python-gobject2 doesn't contain gboject-introspection support anymore
Give what you have. To someone, it may be better than you dare to think.
Offline
Thank you very much, I missed only the python-gobject packet
Now I download a manual and have some fun!
Offline
By the way, does anyone know any "hands-on" GTK3/Python3 manual?
Offline
I haven't messed around with it very much, but this is the only tutorial I've looked at so far, dunno how 'hands on' it really is though.
Offline
Pages: 1