can't close frame via wx.EVT_CLOSE

You left out event.skip(). This causes processing to stop and the event never gets propagated up to the code that actually hides the window.

Also, I’m not sure that destroying the window from within the close function is a great idea. I’m no authority on this, but I would at least put it in a wx.CallAfter.

Gre7g

···

On 6/18/08, Paul Hartley phartley@gmail.com wrote:

def on_close(self, event):
self.Destroy()