Synaptic : Libglade for Python
LinuxMurah.com
linuxmurah at gmail.com
Sun Apr 9 06:50:04 UTC 2006
can I write only like this:
import gtk
import gtk.glade
or just like this:
import gtk.glade
> > from gtk import *
> > from gnome.ui import *
> > from GDK import *
> > import libglade
> I think you need to use: 'import gtk.glade' not 'libglade'...
>
> ...but since you used 'from gtk import *' all you need to do is to call
> the functions/classes directly like this: 'glade.get_widget_name(...)'
> and so on.
>
> >
> > always produce this error message:
> >
> > breezy at ubuntu:~/Projects/project4$ python foo.py
> > Traceback (most recent call last):
> > File "foo.py", line 6, in ?
> > import libglade
> > ImportError: No module named libglade
> >
> > It is clear that no libglade installed in my Breezy, so I search using
> > synaptic but there are no package named libglade for python.Could
> > somebody tell me what is the name of package that containing libglade
> > for python??? please....
> >
> The package is called 'glade-2' and the Python binding is called
> 'python-glade2'. Make sure both are installed.
More information about the ubuntu-users
mailing list