[wxPython-users] Better exception handling

Jorgen Bodde jorgen.maillist at gmail.com
Thu Jun 28 10:07:11 PDT 2007


Thank you for your example, but nothing seems to happen.

When I run this in a console I get:

jorg at shale:~/personal/src/GuitarPortfolio/tmp$ python fire.pyw
Traceback (most recent call last):
  File "fire.pyw", line 15, in OnErr
    1/0
ZeroDivisionError: integer division or modulo by zero
Traceback (most recent call last):
  File "fire.pyw", line 15, in OnErr
    1/0

When I run this in a shorcut named fire.pyw I see the app, I click the
button and nothing happens. The exception gets absorbed.

I'm using wxPython 2.8.4 on wxGTK (Ubuntu Feisty)

Any ideas what might be wrong? With regards,
- Jorgen

On 6/28/07, Gre7g Luterman <hafeliel at yahoo.com> wrote:
> --- Jorgen Bodde <jorgen.maillist at gmail.com> wrote:
>
> > I tried to start my app with redirect = True, but
> > nothing seems to
> > happen. Can someone show me a mini example where a
> > python exception
> > gets caught and a window is shown???
>
> http://pastie.textmate.org/74448
>
> Gre7g
>
>
>       ____________________________________________________________________________________
> Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>




More information about the wxpython-users mailing list