lp:~flimm/python-snippets/gtkcrashhandler
Created by
David D Lowe
and last modified
gtkcrashhandler catches Python exceptions anywhere in your application and displays a user-friendly error message dialog.
It has the following features:
- includes the exception's stack trace in a text box hidden by an expander
- can be used with multiple threads using gtkcrashhandler
- integrates with Apport: if it's installed and enabled, a "Report problem" button will be added.
To use in your programs, just add the following two lines at the top of your main module:
import gtkcrashhandler
gtkcrashhandler
For threads, decorate the run method with:
@gtkcrashhandle
- Get this branch:
- bzr branch lp:~flimm/python-snippets/gtkcrashhandler
Only
David D Lowe
can upload to this branch. If you are
David D Lowe
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
Ready for review
for merging
into
lp:~jonobacon/python-snippets/trunk
- Jono Bacon: Pending requested
-
Diff: 115 lines (+29/-20)1 file modifiedpygtk/gtkcrashhandler.py (+29/-20)
Branch information
Recent revisions
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~jonobacon/python-snippets/trunk