Synaptic : Libglade for Python
ZIYAD A. M. AL-BATLY
zamb at saudi.net.sa
Sun Apr 9 06:24:52 UTC 2006
On Sun, 2006-04-09 at 12:50 +0700, LinuxMurah.com wrote:
> Dear friends,
>
> I have Python and Glade installed in my Breezy box. but when I run a
> program containing :
>
> 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.
Ziyad.
More information about the ubuntu-users
mailing list