• Home
  • Raw
  • Download

Lines Matching refs:filename

66     filename = None  variable in IOBinding
69 def set_filename(self, filename): argument
70 if filename and os.path.isdir(filename):
71 self.filename = None
72 self.dirname = filename
74 self.filename = filename
85 filename = self.askopenfile()
87 filename=editFile
88 if filename:
98 not self.filename and
100 flist.open(filename, self.loadfile)
102 flist.open(filename)
115 filename = self.askopenfile()
117 filename=editFile
118 if filename:
119 self.loadfile(filename)
126 def loadfile(self, filename): argument
129 with tokenize.open(filename) as f:
144 with open(filename, encoding=enc) as f:
154 "File %s\nFailed to Decode" % filename,
175 self.set_filename(filename)
182 self.updaterecentfileslist(filename)
189 self.filename or "this untitled document")
208 if not self.filename:
211 if self.writefile(self.filename):
221 filename = self.asksavefile()
222 if filename:
223 if self.writefile(filename):
224 self.set_filename(filename)
231 self.updaterecentfileslist(filename)
235 filename = self.asksavefile()
236 if filename:
237 self.writefile(filename)
239 self.updaterecentfileslist(filename)
242 def writefile(self, filename): argument
246 with open(filename, "wb") as f:
309 filename = self.filename
311 if not saved or filename is None:
313 filename = tempfilename
329 command = command % shlex.quote(filename)
363 filename = self.opendialog.show(initialdir=dir, initialfile=base)
364 return filename
367 if self.filename:
368 return os.path.split(self.filename)
385 filename = self.savedialog.show(initialdir=dir, initialfile=base)
386 return filename
388 def updaterecentfileslist(self,filename): argument
391 self.editwin.update_recent_files_list(filename)