[issue39370] askopenfilename is missing from the Tkinter filedialog library in 2.7.17
Ned Deily
report at bugs.python.org
Fri Jan 17 14:10:34 EST 2020
Ned Deily <nad at python.org> added the comment:
In Python 2, askopenfilename was in the separate tkFileDialog module:
>>> import tkFileDialog
>>> dir(tkFileDialog.askopenfilename)
['__call__', ...
https://docs.python.org/2/library/tkinter.html?highlight=tkfiledialog#tkinter-modules
"Other modules that provide Tk support include:
[...]
tkFileDialog
Common dialogs to allow the user to specify a file to open or save.
[...]
These have been renamed as well in Python 3; they were all made submodules of the new tkinter package."
----------
nosy: +ned.deily
resolution: -> not a bug
stage: -> resolved
status: open -> closed
type: crash ->
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39370>
_______________________________________
More information about the Python-bugs-list
mailing list