[wxPython] Hooking into the window destruction sequence

RE: [wxPython] Hooking into the window destruction sequence

For my purposes hooking into the destroy event was

perfect – just what I needed. Thanks.

···

-----Original Message-----

From: Bernhard Herzog [mailto:bh@intevation.de]

Sent: Friday, May 10, 2002 12:29 PM

To: wxpython-users@lists.wxwindows.org

Subject: Re: [wxPython] Hooking into the window destruction sequence

Bernhard Herzog bh@intevation.de writes:

“Robin Dunn” robin@alldunn.com writes:

I would like to hook some cleanup code into the window destruction

activities such that when a wxPanel-derived class is destroyed

(from whatever cause) the cleanup code is executed.

EVT_WINDOW_DESTROY(self, self.OnCleanup)

[snipped my sample program where this event isn’t sent under wxGTK]

I investigated this a bit further. AFAICT, the only wx version where

this event is actually implemented is wxMSW, so I tried my hand at a

patch and submitted it:

https://sourceforge.net/tracker/index.php?func=detail&aid=554592&group_id=9863&atid=309863

Intevation GmbH http://intevation.de/

Sketch http://sketch.sourceforge.net/

MapIt! http://www.mapit.de/


wxpython-users mailing list

wxpython-users@lists.wxwindows.org

http://lists.wxwindows.org/mailman/listinfo/wxpython-users