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

Call dlg.Close() after the ShowModal returns.

···

On 8/8/12 7:10 AM, 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 ?

--
Robin Dunn
Software Craftsman