ActiveState Code

Recipe 334620: Redirect stderr in wxPython


wxApp usually sends error messages to a wxWindow. This can be a problem if you are trying to debug a crash, the window disappears before you can see the traceback. The first argument to wxApp is redirect=True, the second is filename=None. You specify a filename to write to that file, or specify false to redirect to write to the console.

Python
1

Sign in to comment