[wxPython] doing some logging during the abnormal exit of GUI application

Hi All,

I want to save the contents of wxTextControl widget in a file duing the
abnormal exit[SIGSEV, SIGINT, SIGKILL] of the GUI application.

How can i goabout it?

if i map action handler for signals, inside the action handler i cudn't get
the refernce to the frame object.
do i need to have a globle variable which is pointing to the frame object.

Regards,
Maharajan

I want to save the contents of wxTextControl widget in a file duing the
abnormal exit[SIGSEV, SIGINT, SIGKILL] of the GUI application.

How can i goabout it?

if i map action handler for signals, inside the action handler i cudn't

get

the refernce to the frame object.
do i need to have a globle variable which is pointing to the frame object.

Yep, but it may not be safe to access the GUI from a signal handler. Be
sure to thoroughly test it.

ยทยทยท

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!