wx.WindowDestroyEvent

Inheritance diagram for wx.WindowDestroyEvent:



Description

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.

Methods Summary

Properties Summary

Class API

Methods

__init__(win=None)

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:

wx.WindowDestroyEvent


GetWindow()

Returns the window that this event refers to.


Returns:

wx.Window


Properties

Window
See GetWindow