[pygtk] trap gtk warnings

Johan Dahlin jdahlin at async.com.br
Sat Sep 16 05:23:02 WST 2006


skip at pobox.com wrote:
>     Michael> is there a way to trap gtk assertions in pygtk?  
> 
> None that I'm aware of.  I believe I've asked about this before as well.  It
> would be *really* nice if these got translated into Python exceptions by
> PyGTK.

python -Werror ...

However it gives "interesting" output;

Exception gtk.GtkWarning: <gtk.GtkWarning instance at 0xb7265fcc> in
'garbage collection' ignored
Fatal Python error: unexpected exception during garbage collection

:-)

-- 
Johan Dahlin <jdahlin at async.com.br>
Async Open Source


More information about the pygtk mailing list