Re: wxPython MainLoop exception handling problem

2005-09-12 Thread Kreedz
Well, it worked :) Thanks a lot! - Kreedz -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython MainLoop exception handling problem

2005-09-12 Thread ncf
Errm, maybe you could use the sys.excepthook function to catch the error and then print the details yourself from the traceback object. import sys def _exceptionhook(type, value, traceback): ''' your code here ''' sys.excepthook = _exceptionhook ((untested)) -- http://mail.python.org/mailma

wxPython MainLoop exception handling problem

2005-09-12 Thread Kreedz
Hi, I'm making some intelligent logging module that redirects stdout and stderr of a wxPython GUI. I am logging the exceptions in a wx TreeCtrl. My problem is that when an exception is thrown, there are many calls to stderr that are made which gives this kind of result: Traceback (most recent cal