"import Gtk" not working
ruwan thushara <[email protected]>
| Newsgroups | gmane.comp.gnome.love |
|---|---|
| Message-ID | <CAFsU_R+Dfh7b4EKBseRh__C2uxf6Ffp=g0NxedT7eBpV4Q2X6Q@mail.gmail.com> |
Hi
I designed ui using glade and connect it with python code. when i use
"import Gtk" In the python code it gives import error in the terminal like
below,
Traceback (most recent call last):
File "test.py", line 1, in <module>
import Gtk
ImportError: No module named Gtk
But when i use "from gi.repository import Gtk" it works as expected.
problem is why can't I just import Gtk in to the code?
Thanx
_______________________________________________
gnome-love mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-love