Re: what does 0 mean in MyApp(0)



"Alex" <lidenalex@xxxxxxxx> schrieb im Newsbeitrag
news:1128089733.684329.101320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| 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 is explained nicely except the zero parameter in MyApp(0).
| Anybody knows what that zero refers to?

See:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/334620
|

--
Vincent Wehren
| Alex
|


.



Relevant Pages

  • wxPython layout problem
    ... def buildInputPanel: ... app = wx.PySimpleApp ... the scroll bars and borders on the text controls dont appear until i ... Prev by Date: ...
    (comp.lang.python)
  • same menu point is activated
    ... Im trying to learn wxpython by some samples and Ive come across this. ... def OnAbout: ... app = wx.PySimpleApp ... Prev by Date: ...
    (comp.lang.python)
  • Re: Running python apps from within python apps
    ... def run_script: ... app = myApp ... Prev by Date: ...
    (comp.lang.python)
  • My first wxPython App with Twisted
    ... I am creating the first GUI app using Twisted. ... def OnInit: ... ''' TaskBar Icon ...
    (comp.lang.python)
  • Pmw problem in cygwin with Tkinter
    ... I have a Tkinter app running on cygwin. ... that does nothing more than fetch a directory listing and display it ... problem is with Pmw, and in particular with the menubar widget. ... def dir_list: ...
    (comp.lang.python)