[wxPython-users] Handling an exception in App's main loop

Suzuki Alex Alex.Suzuki at ksta.ktzh.ch
Tue Nov 21 04:54:51 PST 2006


Hi Jeff,
 =

I'd appreciate a copy of what you have lying around. :-)
 =

cheers, Alex

-----Original Message-----
From: Jeff Grimmett [mailto:grimmtooth at gmail.com]
Sent: Tuesday, November 21, 2006 1:47 PM
To: wxPython-users at lists.wxwidgets.org
Subject: Re: [wxPython-users] Handling an exception in App's main loop



On 11/20/06, Suzuki Alex < Alex.Suzuki at ksta.ktzh.ch> wrote: =


Hi,

I'm trying to wrap the call to App::MainLoop() in a try/except
statement, the idea would be to display a dialog when an unhandled
exception occurs, which allows the user to view the stack trace
and optionally email it to a developer. =





If  it is still included in the wx package, the unsupported ErrorDialog cla=
ss has some hooks for not only catching the exception, but the traceback as=
 well. It is seriously broken under wx 2.5 and later (unless someone has re=
vamped it) but the hooks are just fine. If it's not included with wx anymor=
e, feel free to email me and I'll send you a copy from an old archive I hav=
e laying around.  (private email preferred, I often go days without reading=
 the ML these days)

I keep saying I'm going to revise it someday so it'll be of use to people (=
I'm not the original author, just an interested codeboy). I keep getting si=
detracked. =


-- =

"I don't belong to any organized party: I'm a democrat."

                  - Will Rogers

Best,

    Jeff =


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200611=
21/cdfb378b/attachment.htm


More information about the wxpython-users mailing list