lp:~flimm/python-snippets/gtkcrashhandler

Created by David D Lowe on 2010-03-01 and last modified on 2010-08-24

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 on 2010-08-24

Update gtkcrashhandler.py for Apport 1.13.3

99. By Jono Bacon <jono@system76-pc> on 2010-04-24

Sending email snippet

98. By Jono Bacon <jono@system76-pc> on 2010-04-24

Awesome PyGTK message dialog snippet.

97. By Jono Bacon <jono@system76-pc> on 2010-04-24

A bunch of PyTurtle snippets. Thanks, Grant!

96. By Jono Bacon <jono@system76-pc> on 2010-04-24

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

95. By Jono Bacon <jono@system76-pc> on 2010-04-24

Fix to webkit table snippet.

94. By Jono Bacon <jono@system76-pc> on 2010-04-24

Renamed unittests and unittest.

93. By Jono Bacon on 2010-04-10

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

92. By Jono Bacon on 2010-04-10

Snippet to read an OpenOffice.org spreadsheet file.

91. By Jono Bacon on 2010-04-10

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