Staging: this is not the live site, pydocs.org.
Graphical user interfaces with Tk
tkinter.filedialog
The tkinter.filedialog module provides classes and factory functions for creating file/directory selection windows.
© Python Software Foundation. PSF License Version 2 · Official docs ↗
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.
- 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.
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.