Choosing a file in Python3

前端 未结 3 1444
我寻月下人不归
我寻月下人不归 2021-02-05 14:08

Where is the tkFileDialog module in Python 3? The question Choosing a file in Python with simple Dialog references the module using:

from Tkinter import Tk
from          


        
3条回答
  •  一整个雨季
    2021-02-05 14:54

    You're looking for tkinter.filedialog as noted in the docs.

    from tkinter import filedialog
    

    You can look at what methods/classes are in filedialog by running help(filedialog) in the python interpreter. I think filedialog.LoadFileDialog is what you're looking for.

提交回复
热议问题