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_thread decorator
- 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.initialize()

For threads, decorate the run method with:
@gtkcrashhandler.gtkcrashhandler_thread

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

Related bugs

Related blueprints

Branch information

Owner:
David D Lowe
Project:
Python Snippets
Status:
Development

Recent revisions

100. By David D Lowe

Update gtkcrashhandler.py for Apport 1.13.3

99. By Jono Bacon <jono@system76-pc>

Sending email snippet

98. By Jono Bacon <jono@system76-pc>

Awesome PyGTK message dialog snippet.

97. By Jono Bacon <jono@system76-pc>

A bunch of PyTurtle snippets. Thanks, Grant!

96. By Jono Bacon <jono@system76-pc>

Two core python and one webkit snippet. Thanks, Akkana!

95. By Jono Bacon <jono@system76-pc>

Fix to webkit table snippet.

94. By Jono Bacon <jono@system76-pc>

Renamed unittests and unittest.

93. By Jono Bacon

Added comment to clarify which twitter Python module is used. Thanks, Florian!

92. By Jono Bacon

Snippet to read an OpenOffice.org spreadsheet file.

91. By Jono Bacon

Added 'import sys' for import gtk or vte exceptions.

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
This branch contains Public information 
Everyone can see this information.

Subscribers