Re: what does 0 mean in MyApp(0)

2005-10-19 Thread James Stroud
>From Google: Results 1 - 10 of about 1,340,000,000 for 0. (0.09 seconds) James On Friday 30 September 2005 07:15, Alex wrote: > I'm looking at a tutorial with the code below > > from wxPython.wx import * > > class MyApp(wxApp): > def OnInit(self): > frame = wxFrame(NULL, -1, "winApp

Re: what does 0 mean in MyApp(0)

2005-10-04 Thread Magnus Lycka
Alex wrote: > Alterbnative 2 is simple and useful, so that's why everybody use that > alternative. Everybody doesn't... Particularly in Windows, it's common that people make a .pyw-file, and then you don't see any console, or otherwise they double-click on a .py-file, and if the app dies with an

Re: what does 0 mean in MyApp(0)

2005-10-02 Thread MrJean1
See the documentation for the __init__() method here Btw, this is wxPython 2.6, AFAIK. /Jean Brouwers -- http://mail.python.org/mailman/listinfo/python-list

Re: what does 0 mean in MyApp(0)

2005-10-02 Thread Peter Hansen
Alex wrote: > Thanks for the replies. It seems that I have three options > 1. app=MyApp() > 2. app=MyApp(0) > 3. app=MyApp('myfile.txt') I just want to emphasize the part of vincent's reply in which he points out that using the keyword arguments makes this more readable. If more examples and act

Re: what does 0 mean in MyApp(0)

2005-10-01 Thread vincent wehren
"Alex" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | Thanks for the replies. It seems that I have three options | 1. app=MyApp() | 2. app=MyApp(0) | 3. app=MyApp('myfile.txt') | | 1. In the first case the output stream will be set to stdout/stderr, | which means that errors w

Re: what does 0 mean in MyApp(0)

2005-09-30 Thread Alex
Thanks for the replies. It seems that I have three options 1. app=MyApp() 2. app=MyApp(0) 3. app=MyApp('myfile.txt') 1. In the first case the output stream will be set to stdout/stderr, which means that errors will be sent to a window which will be closed when the app crashes. 2. In the second cas

Re: what does 0 mean in MyApp(0)

2005-09-30 Thread vincent wehren
"Alex" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | I'm looking at a tutorial with the code below | | from wxPython.wx import * | | class MyApp(wxApp): |def OnInit(self): |frame = wxFrame(NULL, -1, "winApp", size = (800,640)) |frame.Show(true) |se

Re: what does 0 mean in MyApp(0)

2005-09-30 Thread Ido . Yehieli
i see you inherit from wxApp. mybe the constructor of that object takes an int value? -- http://mail.python.org/mailman/listinfo/python-list

what does 0 mean in MyApp(0)

2005-09-30 Thread Alex
I'm looking at a tutorial with the code below from wxPython.wx import * class MyApp(wxApp): def OnInit(self): frame = wxFrame(NULL, -1, "winApp", size = (800,640)) frame.Show(true) self.SetTopWindow(frame) return true app = MyApp(0) app.MainLoop() Everything