Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently learning python and GTK so please forgive the noobish question,

I have a program (created in quickly) that has two main windows, that is to say that depending on context one or the other window is displayed, and if a item is clicked in the first window the second window is called.

This works well the first time the second window is called, but subsequent times the window appears blank, its requested dimensions are applied so I assume it is reading the glade file correctly. Did some part of my program destroy the widgets when I closed the window? if so is there a simple way to avoid this?

I can post the source code if needed.

share|improve this question
up vote 2 down vote accepted

This can be a common problem with closing windows. In the delete-event handler, make sure you either return True if you hide the window or return False if you destroy it.

share|improve this answer
Thanks, Timo thats what I needed. – SomKit Jul 25 '12 at 22:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.