PDA

View Full Version : [SOLVED] [pygtk]How to use multiple windows?



days_of_ruin
July 26th, 2008, 01:00 AM
I am using glade and to make my second window popup I "show_all" on the
second window to make it appear.I then close it and press the button
that made it appear again only now its an empty window filled with
gray.

What is the correct way to use multiple windows?

Quikee
July 26th, 2008, 09:55 AM
I am using glade and to make my second window popup I "show_all" on the
second window to make it appear.I then close it and press the button
that made it appear again only now its an empty window filled with
gray.

What is the correct way to use multiple windows?

Don't allow that the second window is closed - hide it instead. When you press the button again - just show again.

days_of_ruin
July 26th, 2008, 03:16 PM
Don't allow that the second window is closed - hide it instead. When you press the button again - just show again.

I tried that.Still doesn't work.

EDIT:btw I had the "hide_all()" call in the windows destroy callback.
But it destroys the window anyway.

days_of_ruin
July 26th, 2008, 11:18 PM
solved.In the button to create the second window I made the gtk builder
load the xml file again and then get the window again.