>   I think pygtk should install a log handler to turn all log messages
> into python warnings.  Then, the pygtk programmer may use the standard
> 'warnings' module to do whatever he wishes to such warnings: hide them,
> turn them to exceptions, show in a text/list widget, etc.

I'm not sure why a new mechanism is needed.  GLIB already provides
a mechanism for intercepting the log messages (g_log_set_handler).
If this was exposed in pygtk, then a programmer could intercept
the log messages, redirect them as python warnings, or do whatever
else they wanted to do with them.

Since pygtk is a package that exposes GTK API's to python,
this seems like the appropriate thing to do.

> Gustavo Jo�o Alves Marques Carneiro

Tim N.
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to