[Tutor] wxPython crash

Jeff Shannon jeff@ccvcorp.com
Fri, 23 Aug 2002 09:07:56 -0700


"BELSEY, Dylan" wrote:

>  [...] I don't
> understand why you need to pass "0" to the MyApp class as it appears that
> its initialisation function does not accept any outside
> parameters....suggest trying:
> app = MyApp() # Without the zero

wxApp accepts an optional argument that affects how stdout is directed.  I can
never remember the details of what the respective results of passing nothing, 0,
or 1 are (try them all and see!), but I do know that passing a filename causes
stdout to be redirected to that file.  Usually when I'm debugging a wxPython
application that crashes, I'll redirect stdout to a file so that I can
conveniently see the tracebacks.

Jeff Shannon
Technician/Programmer
Credit International