wx.EVT_CLOSE not called with a wx.Dialog derived class

Hello Robin,

Working great. Thanks you !

Jérôme

···

On Wednesday, August 8, 2012 4:10:23 PM UTC+2, jeromecoroyer wrote:

Hello,

I have a problem with a simple wx.Dialog derived class. I mapped the wx.EVT_CLOSE event to an ‘OnClose()’ function and I wish it to get call whatever method the user choose to close the dialog: Cancel or Ok button click, ALT-F4 or ESC key press. Currently I only managed to make it happen for ALT-F4.

Any idea ?
Please find an attached sample code.

Best regards
Jérôme