Mike Driscoll wrote:
> Robin,
>
> On Tuesday, February 4, 2014 8:37:06 PM UTC-6, Robin Dunn wrote:
>
> Mike Driscoll wrote:
> > Hi Robin,
> >
> >
> > It would be nice if somebody could update that page with info and
> > examples of using sys.excepthook. Also the current solution on that
> > page would be handy as a decorator, so examples for using it that
> way
> > would be helpful.
> >
> > --
> > Robin Dunn
> > Software Craftsman
> >
http://wxPython.org
> >
> >
> > I think I figured out how to create a class decorator out of that
> sample
> > code. I have attached my example. Could you take a look and see
> if it's
> > a good example? Thanks!
>
> It would be nice to be able to use the decorator on things besides
> event
> handlers, so making it more generic (with *args, **kw) would be good.
>
> I modified it a bit to use the *a, **kw format. Hopefully the attached
> will suffice. It worked on my machine anyway.
instance, not the Panel instance. ISTR that there is a simple way