📜  tkinter filedialog 如何显示多个文件类型 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:39.777000             🧑  作者: Mango

代码示例1
from tkinter import filedialog

# To show multiple file types at the same time you need to
# seperate the types with a space
filedialog.askopenfilename(filetypes=[("Excel files", ".xlsx .xls")])