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

Function asksaveasfile

Lib/tkinter/filedialog.py:431–437  ·  view source on GitHub ↗

Ask for a filename to save as, and returned the opened file

(mode = "w", **options)

Source from the content-addressed store, hash-verified

429
430
431def asksaveasfile(mode = "w", **options):
432 "Ask for a filename to save as, and returned the opened file"
433
434 filename = SaveAs(**options).show()
435 if filename:
436 return open(filename, mode)
437 return None
438
439
440def askdirectory (**options):

Callers

nothing calls this directly

Calls 3

SaveAsClass · 0.85
openFunction · 0.50
showMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…