[PyKDE] Exceptions in callbacks

Pete Ware ware at cis.ohio-state.edu
Sat Feb 3 14:56:54 GMT 2001


Perhaps I oversimplified.

Imagine the user pushing on some button in the UIF and for whatever
reason (permission denied, coding error (gasp), etc) some exception is
raised.  Right now, PyQt internally catches the exception -- which is
great as the Qt event loop continues executing which is much, much
better than the application dying.

What I'd like to be able to do is to tell the PyQt code:

        qt.set_exception_handler (some_function)

so when any exception reaches the PyQt event loop, some_function()
gets called.

--pete




More information about the PyQt mailing list