Inheritance diagram for wx.WindowDestroyEvent:
This event is sent from the wx.Window when a window is destroyed.
When a class derived from wx.Window is destroyed its destructor will have already run by the time this event is sent. Therefore this event will not usually be received at all.
To receive this event wx.EvtHandler.Connect must be used (using an event table macro will not work). Since it is received after the destructor has run, an object should not handle its own wx.WindowDestroyEvent, but it can be used to get notification of the destruction of another window.
See also
The wx.EVT_WINDOW_DESTROY event is sent from the wx.Window destructor when the GUI window is destroyed.
When a class derived from wx.Window is destroyed its destructor will have already run by the time this event is sent. Therefore this event will not usually be received at all by the window itself. Since it is received after the destructor has run, an object should not try to handle its own wx.WindowDestroyEvent, but it can be used to get notification of the destruction of another window.
Parameters:
Returns: