MCPcopy Index your code
hub / github.com/RustPython/RustPython / ok_command

Method ok_command

Lib/tkinter/filedialog.py:239–244  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 4

get_selectionMethod · 0.80
bellMethod · 0.80
isfileMethod · 0.45
quitMethod · 0.45

Tested by

no test coverage detected