« The 'Beast' of Frimley | Main | Reformation »
Monday
May262008

Glade 3, pyGTK, and "Beginning Python"

I was working my way through "Writing a GUI with Python", Chapter 13 of "Beginning Python" (Peter Norton et al., 2005) using Glade 3.4.3 and pyGTK 2.12.1 on Windows XP.  However, I was unable to get any of the Glade examples to work.  The expected windows just would not appear.  There were no error messages, and breaking into the program while it was running in Idle showed that it was in the gtk.main() loop as expected.  I eventually worked out that I had to go into Glade and explicitly set the main windows Visible property to 'Yes' (see under the Common tab) .  Only then would the windows display as expected.  This need to set the Visible property seems not  to be mentioned in "Beginning Python" which is based on Glade 2.  Maybe it was introduced in Glade 3?

Reader Comments (4)

Lol! I hadn't used Glade-3 yet, and was losing my mind over this! Thank you.
2008-10-20 | Unregistered CommenterEyesOfARaven
Hit the same problem... I was even looking for a visible property shortly but only after your post, found it under the common tab :)
2009-02-10 | Unregistered Commentercw
lolz....same here
2009-09-27 | Unregistered Commenterprakash
Great!!
I met the same question with you, and I found Visible property till I saw this post.
Thanks!
2010-05-14 | Unregistered Commenterconan

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.