[Pythonmac-SIG] wxPython book. First example misbehaves on my Mac ?? What's happening?

Charles Hartman charles.hartman at conncoll.edu
Mon Apr 10 21:51:32 CEST 2006


On Apr 10, 2006, at 3:21 PM, Opstad, Dave wrote:

> On 4/10/06 12:11 PM, "Louis Pecora" <pecora at anvil.nrl.navy.mil> wrote:
>
> > #!/usr/bin/pythonw
> >
> > import wx
> >
> > class App(wx.App):
> >     def OnInit(self):
> >         frame = wx.Frame(parent=None, title="BaRe")
> >         frame.Show()
> >         return true
> >
> > app = App()
> > app.MainLoop()
>
> I think the return should be True, not true.
>
> Dave
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

And I think the shebang line at the beginning should be

#!/usr/bin/env pythonw

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20060410/297b022a/attachment.htm 


More information about the Pythonmac-SIG mailing list