]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-59396: Use themed widgets in tkinter.filedialog (GH-152036)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 5 Jul 2026 11:27:51 +0000 (14:27 +0300)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 11:27:51 +0000 (14:27 +0300)
commit3d9d6c8ccbc2a041b8d29c67516d1728442e4f41
tree5ff9b24e362997cb6ee4d4f2af5b9eb83c6f259b
parent856049a9d99119ad74cd991fa8f8a72ebc909122
gh-59396: Use themed widgets in tkinter.filedialog (GH-152036)

The FileDialog, LoadFileDialog and SaveFileDialog dialogs are now built from
the themed tkinter.ttk widgets by default instead of the classic tkinter
widgets, and gained a use_ttk parameter that selects between the classic Tk
widgets and the themed ttk widgets.

They were also brought closer to the native Tk file dialog: the buttons and
field labels gained Alt key accelerators, the default ring follows the keyboard
focus, the Escape key cancels the dialog, the focus traverses the widgets in
their visual order, and the directory and file lists gained a horizontal
scrollbar and type-ahead selection.  The dialog is now transient and centered
over its parent, and the SaveFileDialog overwrite confirmation uses a themed
message box.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/dialog.rst
Doc/whatsnew/3.16.rst
Lib/idlelib/run.py
Lib/test/test_tkinter/test_filedialog.py
Lib/tkinter/filedialog.py
Misc/NEWS.d/next/Library/2026-06-21-23-17-12.gh-issue-59396.Fd9Tk2.rst [new file with mode: 0644]