[PyQt] generic exception handler
Sybren A. Stüvel
sybren at stuvel.eu
Thu Aug 19 18:50:56 BST 2010
On Thu, Aug 19, 2010 at 12:31:36PM -0500, Steve Borho wrote:
> Sorry, I was too quick to dismiss. This does get called when any
> unhandled exception occurs, which is what I need.
Be aware that sys.excepthook is called from the thread that causes the
exception. I streamlined this by emitting a Qt signal from the
exception handler, and showing a dialog box from a connected slot in
the GUI thread.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Digital signature
More information about the PyQt