How to install pyGTK(2)

zinc zinc at unknown.com
Thu Mar 25 14:52:12 EST 2004


Hi Pythoneers,

Im interested in trying some gui programming with the GTK2 toolkit. I
found this brief article,(http://www.linuxjournal.com/article.php?sid=6586),
that speaks about utilising 'Glade' to help build these gui.

I downloaded the pyGTK tarball from
http://www.daa.com.au/~james/software/pygtk/ i do the usual ./configure,
make, makeinstall. 

Everything goes well, but when i try a sample script python says it can't
import gtk (i did a help, modules and there is no gtk module listed).
After googling for sometime i found a pygtk slackpack (im running slack
9.1 by the way ;)), and installed that instead. 

I then tried the sample script again and this time no gtk problems( the
module is now listed). but it now bombs out on the second import line:
import libglade???

I have glade2 installed, and libglade, but i check python modules and
there is no libglade module listed. Ive googled, but now im getting
confused.

Phew..

I'm really just after a step by step guide to what to download and where
to install everything i need to get started building gui's with
glade+pyGTK+python. This would be much appreciated. 

I promise i googled hard, but sometimes i can't see the wood for the trees :/
Getting my pyGTK, pyGTK2+pyGLADE+python-libglade's all mixed up and just a
little lost.

Any help would be warmly received.

Regards

zinc





More information about the Python-list mailing list