[wxPython-users] Better exception handling
Robin Dunn
robin at alldunn.com
Thu Jun 28 10:51:46 PDT 2007
Jorgen Bodde wrote:
> 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,
The default on wxGTK is to not redirect. Just change it to
App = TestApp(redirect=True)
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list