catch close gtk.window

pygtk

Solution

Handle the delete-event signal. Return False to close, True to cancel.

Problem

I have gtk.Window and I need to catch closure. I need to close the show the message dialog and click Yes if the window should be closed unless there is a show window Thank you.

Original source