[pygtk] Re: how to intercepting toplevel widget destroy event to hide rather than destroy

Luc Lefebvre luc.lefebvre at mcgill.ca
Wed Jan 7 10:58:55 WST 2004

Malcolm Tredinnick wrote:

> The general solution is here:
> http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq10.006.htp
> Cheers,
> Malcolm

Interestingly this works for my "About" dialog, I trap the "on_dialog1_delete_event", hide the widget,  and return gtk.TRUE.  If I try the same trick with a FileDialog (ie. trapping "on_file_selection1_delete_event") clicking the "x" in the top right of the FileSelection window this event is not triggered (while it is in a conventional dialog box).  I must be missing something, any insight would be appreciated...


Luc Lefebvre

In the beginner's mind there are many possibilities,
in the expert's mind there are few.			<Shunryu Suzuki>

Key fingerprint = D2E5 5E35 B910 6F4E 0242  EC63 0FD9 96D0 C7F4 784E

More information about the pygtk mailing list