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

Function askopenfile

Lib/tkinter/filedialog.py:405–411  ·  view source on GitHub ↗

Ask for a filename to open, and returned the opened file

(mode = "r", **options)

Source from the content-addressed store, hash-verified

403
404
405def askopenfile(mode = "r", **options):
406 "Ask for a filename to open, and returned the opened file"
407
408 filename = Open(**options).show()
409 if filename:
410 return open(filename, mode)
411 return None
412
413
414def askopenfiles(mode = "r", **options):

Callers

nothing calls this directly

Calls 3

OpenClass · 0.70
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…