Gustavo J. A. M. Carneiro wrote:
  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.

Interesting idea; I think this should be an option and maybe should be the default behavior. The patch I submitted as part of the patch to create a glib module simply wraps the log_set_handler function so that a Python callable can be used as the handler.


John
_______________________________________________
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