[gnome-love] "import Gtk" not working
- From: ruwan thushara <thushararuwan88 gmail com>
- To: gnome-love gnome org
- Subject: [gnome-love] "import Gtk" not working
- Date: Wed, 27 Feb 2013 14:03:32 +0530
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 GtkBut 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]