How to make libglade2 work in Python?



Does Garnome 0.21.2 include libglade for Python?  When I import
libglade from python 2.1, I get the version distributed with my
distro. (Debian Stable). When I try to import it from python 2.2, it
doesn't work. (libglade isn't installed in Python 2.2's
site-packages.) I have compiled libglade, and these files are
produced:

garnome ~/garnome/lib > find . -iname "*glade*"
./pkgconfig/libglade-2.0.pc
./libglade-2.0.so.0.0.1
./libglade-2.0.so.0
./libglade-2.0.so
./libglade-2.0.la
./libglade
./python2.2/site-packages/gtk-2.0/gtk/glademodule.so
./python2.2/site-packages/gtk-2.0/gtk/glademodule.la
garnome ~/garnome/lib >

Trying "import glademodule" or "import glade" doesn't help.
My pythonpath looks like this:

garnome ~/garnome/lib > echo $PYTHONPATH
:/home/garnome/garnome/lib/python2.2/site-packages:/home/garnome/lokal/lib/python2.2/site-packages:/home/garnome/garnome/lib/python2.1/site-packages

Straw compiled, and works.

What do I need to do to get libglade for GTK2 for python working?

-- 
Åsmund Skjæveland 
(OpenPGP keyid 54B975CE)

Attachment: pgpgk0EKrpuHe.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]