MCPcopy Index your code
hub / github.com/python/cpython / LoadFileDialog

Class LoadFileDialog

Lib/tkinter/filedialog.py:233–244  ·  view source on GitHub ↗

File selection dialog which checks that the file exists.

Source from the content-addressed store, hash-verified

231
232
233class LoadFileDialog(FileDialog):
234
235 """File selection dialog which checks that the file exists."""
236
237 title = "Load File Selection Dialog"
238
239 def ok_command(self):
240 file = self.get_selection()
241 if not os.path.isfile(file):
242 self.master.bell()
243 else:
244 self.quit(file)
245
246
247class SaveFileDialog(FileDialog):

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…