def OnOpen(self,event):
dialog=wx.FileDialog(None,'wxpython Notebook(o)',style=wx.FD_OPEN)
if dialog.ShowModal()==wx.ID_OK:
self.file=dialog.GetPath()
file=open(self.file)
self.text.write(file.read())
file.close()
dialog.Destroy()
评论列表
文章目录