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

Method askfilename

Lib/idlelib/query.py:282–287  ·  view source on GitHub ↗
(self, filetypes, initdir, initfile)

Source from the content-addressed store, hash-verified

280 sticky=W+E)
281
282 def askfilename(self, filetypes, initdir, initfile): # htest #
283 # Extracted from browse_file so can mock for unittests.
284 # Cannot unittest as cannot simulate button clicks.
285 # Test by running htest, such as by running this file.
286 return filedialog.Open(parent=self, filetypes=filetypes)\
287 .show(initialdir=initdir, initialfile=initfile)
288
289 def browse_file(self):
290 filetypes = [

Callers 1

browse_fileMethod · 0.95

Calls 1

showMethod · 0.45

Tested by

no test coverage detected