I am using Glade and PyGTK to build my application. My Dialog is defined in XML (Glade output). I use the hide() and show() function on it to make it appear and disappear when the user press the OK or CANCEL button. However, when the user press the "close" button on the window's title bar (managed by the WM), the dialog gets destroyed. Next time I call a show() on it, an exception occurs.
I can intercept the destroy signal, but when my call back function is called, the dialog has already been destroyed. Is there a way to prevent the destruction of the dialog when the "close" button of the window is called? I do not know how to recreate a new dialog since I never created it in the first place; gtk.glade took care of this at startup for me.
So to summarize, once the user clicks on the "close" widget of the dialog's window frame, the dialog is destroyed and my application starts raising exception about the dialog not existing.
Anybody can help? I must not be the first one with this problem. I search the web, but I could not find anything usefull (probably searched with the wrong keywords). :(
Sincerely, Hans Deragon -- Deragon Informatique inc. Open source: http://www.deragon.biz http://swtmvcwrapper.sourceforge.net mailto://[EMAIL PROTECTED] http://autopoweroff.sourceforge.net
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
