(self,event)
| 67 | self.Bind(wx.EVT_RIGHT_DOWN,self.OnRClick) |
| 68 | |
| 69 | def OnOpen(self,event): |
| 70 | dialog=wx.FileDialog(None,'wxpython Notebook(o)',style=wx.FD_OPEN) |
| 71 | if dialog.ShowModal()==wx.ID_OK: |
| 72 | self.file=dialog.GetPath() |
| 73 | file=open(self.file) |
| 74 | self.text.write(file.read()) |
| 75 | file.close() |
| 76 | dialog.Destroy() |
| 77 | |
| 78 | def OnSave(self,event): |
| 79 | if self.file=='': |