By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,543 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,543 IT Pros & Developers. It's quick & easy.

How to install pyGTK(2)

P: n/a

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
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.