what does 0 mean in MyApp(0)

vincent wehren vincent at visualtrans.de
Fri Sep 30 10:37:03 EDT 2005


"Alex" <lidenalex at yahoo.se> schrieb im Newsbeitrag 
news:1128089733.684329.101320 at o13g2000cwo.googlegroups.com...
| 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
| 





More information about the Python-list mailing list