Is this event generated for other windows than wxDialog and wxFrame (toplevel/container windows) ?
BUG or feature ?
wxPython-2.4.0.7/cvs on windows and linux - same effect, "closing" isn't printed.
Grzegorz Makarewicz
Simple.py (610 Bytes)
Is this event generated for other windows than wxDialog and wxFrame (toplevel/container windows) ?
BUG or feature ?
wxPython-2.4.0.7/cvs on windows and linux - same effect, "closing" isn't printed.
Grzegorz Makarewicz
Simple.py (610 Bytes)
Grzegorz Makarewicz wrote:
Is this event generated for other windows than wxDialog and wxFrame (toplevel/container windows) ?
No, only toplevel windows
BUG or feature ?
Not a bug since those are the only windows that can be closed by the user, and allow vetoing the close.
Instead you can use the EVT_WINDOW_DESTROY event to find out when a window has been destroyed, but be sure not to call any methods of the window itself since the window is actually in the process of being destoryed some operations are not possible.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!