MCPcopy Create free account
hub / github.com/Image-Py/imagepy / OnOpen

Method OnOpen

imagepy/ui/logwindow.py:69–76  ·  view source on GitHub ↗
(self,event)

Source from the content-addressed store, hash-verified

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=='':

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
readMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected