How does your application start?
7stud
bbxx789_05ss at yahoo.com
Fri Apr 20 00:54:29 PDT 2007
Say you have this code:
-----
import wx
class MyApp(wx.App):
def OnInit(self):
frame = wx.Frame(None)
frame.Show()
return True
app = MyApp()
app.MainLoop()
-----
If you define an __init__() method and then inside the method you
relay self to wx.App's __init__() method, for instance:
wx.App__init__(self)
then it seems likely that inside wx.App.__init__() there will be a call
to self.OnInit() to start your app.
However, if you don't define an __init__() method, how does
wx.App.__init__() start your app? How does it
get a reference to your app?
Thanks.
More information about the wxpython-users
mailing list