Lines Matching refs:open
2 # - IOBinding.open() replaces the current window with the opened file,
150 self.__id_open = self.text.bind("<<open-window-from-file>>", self.open)
161 self.text.unbind("<<open-window-from-file>>", self.__id_open)
199 def open(self, event=None, editFile=None):
208 # If editFile is valid and already open, flist.open will
212 # pass self.loadfile to flist.open so it will load the file
213 # in the current window (if the file is not already open)
219 flist.open(filename, self.loadfile)
221 flist.open(filename)
249 # open the file in binary mode so that we can handle
251 f = open(filename,'rb')
386 f = open(filename, "wb")
535 dir, base = self.defaultfilename("open")
537 self.opendialog = tkFileDialog.Open(master=self.text,
544 def defaultfilename(self, mode="open"):
576 self.text.bind("<Control-o>", self.open)
583 def open(self, event):
584 self.text.event_generate("<<open-window-from-file>>")