Lines Matching +refs:tk +refs:dialog +refs:file
16 from tkinter.dialog import Dialog
158 file = self.files.get('active')
159 self.set_selection(file)
203 file = self.selection.get()
204 file = os.path.expanduser(file)
205 return file
222 def set_selection(self, file): argument
224 self.selection.insert(END, os.path.join(self.directory, file))
234 file = self.get_selection()
235 if not os.path.isfile(file):
238 self.quit(file)
248 file = self.get_selection()
249 if os.path.exists(file):
250 if os.path.isdir(file):
255 text="Overwrite existing file %r?" % (file,),
262 head, tail = os.path.split(file)
266 self.quit(file)
316 path, file = os.path.split(result)
318 self.options["initialfile"] = file
336 path, file = os.path.split(result[0])
340 if not widget.tk.wantobjects() and "multiple" in self.options:
342 return self._fixresult(widget, widget.tk.splitlist(result))