baskar007
December 23rd, 2009, 04:54 PM
Hi friends,
I am newbie to GTK, I have an idea to write a python application on GTk GUI. i am using Ubuntu9.10 with python 2.6 minimal.
I refered tutorials on http://www.pygtk.org/tutorial.html .
in this tutorial examples the GTk window given as like this
window = gtk.GtkWindow(gtk.WINDOW_TOPLEVEL)
hbox = gtk.GtkHBox(gtk.FALSE, 5)
but i am getting errors when i run these codes.
unhandled AttributeError
"'module' object has no attribute 'GtkWindow'"
unhandled AttributeError
"'module' object has no attribute 'GtkHBox'"
after that i tried same codes with little changes
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
hbox = gtk.HBox(gtk.FALSE, 5)
which one is the right code on above two?
is that tutorial is wrong? or module problem in my PC?
I am newbie to GTK, I have an idea to write a python application on GTk GUI. i am using Ubuntu9.10 with python 2.6 minimal.
I refered tutorials on http://www.pygtk.org/tutorial.html .
in this tutorial examples the GTk window given as like this
window = gtk.GtkWindow(gtk.WINDOW_TOPLEVEL)
hbox = gtk.GtkHBox(gtk.FALSE, 5)
but i am getting errors when i run these codes.
unhandled AttributeError
"'module' object has no attribute 'GtkWindow'"
unhandled AttributeError
"'module' object has no attribute 'GtkHBox'"
after that i tried same codes with little changes
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
hbox = gtk.HBox(gtk.FALSE, 5)
which one is the right code on above two?
is that tutorial is wrong? or module problem in my PC?