[PyQt] Exception handling hook

2007-05-23 Thread Arve Knudsen
Is it possible to register a hook with QApplication in order to be notified of an unhandled exception? Currently, all that happens when an exception propagates to the event loop is that it gets printed in the console, which is not very helpful. How do others cope with unhandled exceptions in PyQt

[PyQt] Exception handling hook

2007-05-23 Thread Sundance
Arve Knudsen wrote: > Is it possible to register a hook with QApplication in order to be > notified of an unhandled exception? Hi Arve, Exceptions live in the Python realm, so they have nothing to do with QApplication as far as I know. You can install an exception handler with sys.excepthook.

[PyQt] Exception handling hook

2007-05-23 Thread Sundance
Arve Knudsen wrote: > If an exception is raised in the last Python > layer, it is swallowed by the excepthook and a nice message box pops > up, BUT once control returns to the first Python layer Hi again, In my opinion, the exception hook should never even return. That's what I meant when I sai

Fwd: [PyQt] Exception handling hook

2007-05-23 Thread Arve Knudsen
-- Forwarded message -- From: Arve Knudsen <[EMAIL PROTECTED]> Date: May 23, 2007 3:29 PM Subject: Re: [PyQt] Exception handling hook To: Sundance <[EMAIL PROTECTED]> On 5/23/07, Sundance <[EMAIL PROTECTED]> wrote: Arve Knudsen wrote: > Is it possible to

Re: [PyQt] Exception handling hook

2007-05-23 Thread Arve Knudsen
On 5/23/07, Sundance <[EMAIL PROTECTED]> wrote: Arve Knudsen wrote: > If an exception is raised in the last Python > layer, it is swallowed by the excepthook and a nice message box pops > up, BUT once control returns to the first Python layer Hi again, In my opinion, the exception hook should

Re: [PyQt] Exception handling hook

2007-05-24 Thread Detlev Offenbach
On Mittwoch, 23. Mai 2007, Arve Knudsen wrote: > Is it possible to register a hook with QApplication in order to be notified > of an unhandled exception? Currently, all that happens when an exception > propagates to the event loop is that it gets printed in the console, which > is not very helpful.

Re: [PyQt] Exception handling hook

2007-05-24 Thread Arve Knudsen
Hi Detlev On 5/24/07, Detlev Offenbach <[EMAIL PROTECTED]> wrote: On Mittwoch, 23. Mai 2007, Arve Knudsen wrote: > Is it possible to register a hook with QApplication in order to be notified > of an unhandled exception? Currently, all that happens when an exception > propagates to the event loo

Re: [PyQt] Exception handling hook

2007-05-25 Thread Detlev Offenbach
On Donnerstag, 24. Mai 2007, Arve Knudsen wrote: > Hi Detlev > > On 5/24/07, Detlev Offenbach <[EMAIL PROTECTED]> wrote: > > On Mittwoch, 23. Mai 2007, Arve Knudsen wrote: > > > Is it possible to register a hook with QApplication in order to be > > > > notified > > > > > of an unhandled exception?

Re: [PyQt] Exception handling hook

2007-05-26 Thread Arve Knudsen
On 5/25/07, Detlev Offenbach <[EMAIL PROTECTED]> wrote: On Donnerstag, 24. Mai 2007, Arve Knudsen wrote: > Hi Detlev > > On 5/24/07, Detlev Offenbach <[EMAIL PROTECTED]> wrote: > > On Mittwoch, 23. Mai 2007, Arve Knudsen wrote: > > > Is it possible to register a hook with QApplication in order to

Re: *** GMX Spamverdacht *** Re: [PyQt] Exception handling hook

2007-05-24 Thread Andreas Pakulat
On 24.05.07 22:37:27, Arve Knudsen wrote: > Hi Detlev > > On 5/24/07, Detlev Offenbach <[EMAIL PROTECTED]> wrote: > > > >On Mittwoch, 23. Mai 2007, Arve Knudsen wrote: > >> Is it possible to register a hook with QApplication in order to be > >notified > >> of an unhandled exception? Currently, all