logo       

Re: Exception dialog: msg#00200

gnome.gtk+.python

Subject: Re: Exception dialog

A Qui, 2003-08-28 às 17:21, Gustavo J A M Carneiro escreveu:
> I thought this might be useful to someone else. I made this
> sys.excepthook function that displays a nice dialog for uncaught
> exceptions.
> To use, just import the module, that's all. The license is whatever
> you want.

Here's a new improved version of this. Modified this code a bit based
on Jamey Cribbs' suggestions:
1. present the details in the same window, but keep them hidden until
the "Show Details" button is pressed;
2. center the dialog on screen.

--
Gustavo J. A. M. Carneiro
<gjc@xxxxxxxxxxxxx> <gustavo@xxxxxxxxxxxxxxxxxxxxx>

Attachment: gtkexcepthook.py
Description: Text Data

_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise