wPython in Action: example chapter 1

7stud bbxx789_05ss at yahoo.com
Fri Apr 20 06:17:57 PDT 2007


John Clark <clajo04 <at> mac.com> writes:
> There is, in section 2.3.2, a discussion of wxPython's convention of
> redirecting stdout to a separate window - by turning off this redirect you
> can have all error messages/stack traces/etc written to the console instead
> of the separate window.  Or - you can choose to have this information
> written into a file.  I do agree that this convention is annoying until you
> discover how to control it. 
> 
> -jdc 
> 

I tried your suggestion, but if I change MyApp like this:


class MyApp(wx.App):
    def __init__(self, fname):
        self.fname = fname
        wx.App.__init__(self, True)


and then purposely put a typo into my code, say:


wx.frame.__init__(self, None, size=bmap_size)  #frame isn't capitalized


I still get a window that flashes at me, and there are no errors
in my console window, and no separate window is created showing me the errors. 





More information about the wxpython-users mailing list