PyDocs

Graphical user interfaces with Tk

tkinter.filedialog

The tkinter.filedialog module provides classes and factory functions for creating file/directory selection windows.
Symbols in tkinter.filedialog

a

askdirectory
Prompt the user to select a directory, and return its path as a string, or an empty string if the dialog is cancelled.
askopenfile
Create an Open dialog.
askopenfilename
Create an Open dialog.
askopenfilenames
Create an Open dialog.
askopenfiles
Create an Open dialog.
asksaveasfile
Create a SaveAs dialog and return the opened file object, or None if the dialog is cancelled.
asksaveasfilename
Create a SaveAs dialog and return the selected filename as a string, or an empty string if the dialog is cancelled.

d

Directory
The above three classes provide native dialog windows for loading and saving files and for selecting a directory.

f

FileDialog
Create a basic file selection dialog.

l

LoadFileDialog
A subclass of FileDialog that creates a dialog window for selecting an existing file.

o

Open
The above three classes provide native dialog windows for loading and saving files and for selecting a directory.

s

SaveAs
The above three classes provide native dialog windows for loading and saving files and for selecting a directory.
SaveFileDialog
A subclass of FileDialog that creates a dialog window for selecting a destination file.