[Baypiggies] wxPython, redirecting stderr etc.
hjtoi at comcast.net
Wed Dec 16 06:10:01 CET 2009
Tony showed one way of redirecting stderr in a wxPython application for
debugging purposes, but there is also another way: the redirect
attribute that wx.App takes.
In Chandler I used this to present the user with a feedback dialog that
showed the stack, some environment variables, and allowed the user to
enter email address and comment what they were doing, and optionally
send th report to OSAF. If you've ever used Talkback (Netscape/Mozilla
browsers) or similar, you are probably familiar with the concept.
There is more information about this in a stackoverflow entry here:
I should add that the server side component (a cherrypy app) is also
available in here: http://svn.osafoundation.org/ofb/ (Disclaimer: I did
not write ofb.)
By the way, even though nobody might be working on Chandler anymore, all
of the code is still available and you might find a lot of it useful in
other projects as well. See also
An example where I was able to rip a feature of Chandler and turn it
into a standalone project later on is described here:
Heikki Toivonen - http://heikkitoivonen.net
More information about the Baypiggies