def OnInit(self, file=None):
"""Initialise the application"""
wx.InitAllImageHandlers()
frame = MainFrame()
frame.Show(True)
self.SetTopWindow(frame)
if file is not None:
wx.CallAfter(frame.load, file)
elif sys.argv[1:]:
wx.CallAfter(frame.load, *sys.argv[1:])
return True
评论列表
文章目录