[wxPython-users] Re: wPython in Action: example chapter 1
John Clark
clajo04 at mac.com
Fri Apr 20 07:50:44 PDT 2007
7stud wrote:
>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.
Right - I am pretty sure what you want is:
wx.App.__init__(self, False)
Or as someone else suggested:
wx.App.__init__(self, True, "logfile_name.txt")
Hope this helps,
-jdc
More information about the wxpython-users
mailing list