def OnInit(self): self.SetAppName(self.appname) self.paths = attrdict() wx.InitAllImageHandlers() self.InitPaths() self.SetPlatformPaths() return True
def __init__(self, appname, filename=None): self.paths = attrdict() self.appname = appname wx.App.__init__(self, filename=filename) self.OnInitXpApp()