wxPython: EVT_CLOSE question

alan scales alans at killergame.com
Sat Feb 16 02:02:45 CET 2002


i have some controls (in particular wxStyledTextCtrl) - they are NOT
frames or dialogs.  I want to be able to trap when they are closed (or
destroyed)(e.g. to save data). I was hoping to use EVT_CLOSE and
provide a handler.  however it does not seem to work.

  1. is it supposed to work? (it is only documented for
frames/dialogs)
  2. if not, what can be done to detect when a control is closed?

thanks
alan scales



More information about the Python-list mailing list