Is there a way to verify an exit, if you click on the exit symbol on a wxPython frame?

Hey thanks Henri! Nice code!