Did this. All (and only) Gtk warnings now are caught and raised as python warnings. The advantage of doing so is that by default python shows the python source file and line number that caused the warning to be raised. Also, warnings can be turned into exceptions or redirected somewhere else.
Thanks, I generally agree with this approach. There's a practical problem on Windows, though, because a GUI application should redirect all log domains to prevent a console window from appearing when something is printed to stdout or stderr. Currently, Wing redirects the following domains: NULL, "Pango", "Gtk", "Gdk", "GLib", "GLib-GObject".
Maybe pygtk should redirect more domains and provide an api to add new redirected domains.
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/
