Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-tkintertype-featureA feature request or enhancementA feature request or enhancement
Description
| BPO | 15191 |
|---|---|
| Nosy | @terryjreedy, @mark-summerfield, @roseman |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2012-06-26.08:41:33.265>
labels = ['type-feature', 'expert-tkinter']
title = "tkinter convenience dialogs don't use themed widgets"
updated_at = <Date 2015-09-18.16:29:17.391>
user = 'https://github.com/mark-summerfield'bugs.python.org fields:
activity = <Date 2015-09-18.16:29:17.391>
actor = 'markroseman'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Tkinter']
creation = <Date 2012-06-26.08:41:33.265>
creator = 'mark'
dependencies = []
files = []
hgrepos = []
issue_num = 15191
keywords = []
message_count = 2.0
messages = ['164057', '164444']
nosy_count = 3.0
nosy_names = ['terry.reedy', 'mark', 'markroseman']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue15191'
versions = ['Python 3.4']Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-tkintertype-featureA feature request or enhancementA feature request or enhancement
Activity
mark-summerfield commentedon Jun 26, 2012
Some of the tkinter convenience dialogs, e.g., tkinter.filedialog.FileDialog, tkinter.scrolledtext.ScrolledText, tkinter.simpledialog.SimpleDialog, tkinter.simpledialog.Dialog, and tkinter.simpledialog._QueryDialog. Ideally they should use ttk.Frame, ttk.Button, etc. Or if that is risky for compatibility, then couldn't they be copied to tkinter.ttk and the copies themized?
terryjreedy commentedon Jul 1, 2012
It has been agreed that IDLE could assume tk8.5 (or possibly 8.4 + tile extension) and use themed widgets (though it is not yet) and not run otherwise. Further discussion would be needed to do the same for tkinter, but maybe by 3.4 that might be reasonable.
serhiy-storchaka commentedon Jun 21, 2026
#151848 updates the implementation of
SimpleDialogandDialogto match the look and feel of::tk_dialogand::tk::MessageBox. Both classes got theuse_ttkparameter which controls the set of used widgets and their layout.SimpleDialoggot also few other features.FileDialogwas left for the follow up PR.SimpleDialogand query dialogs use ttk by default (like most of native Tk dialogs).Dialoguses classic widgets by default, because user's classic widgets inbody()look ugly on ttk.Frame. So this was left on user.The base patch was written in 2020 against 8.6, but I was overloaded and distracted. Then I updated it to 9.0, 9.1, and with help of Claude Code was able to finish it (so the documentation is better than what I usually wrote).
gh-59396: Modernize tkinter.simpledialog (GH-151848)
pythongh-59396: Tolerate absent tkinter dialog submodules in idlelib.run
gh-59396: Use themed widgets in tkinter.filedialog (GH-152036)
pythongh-59396: Modernize tkinter.simpledialog (pythonGH-151848)
Merge branch 'main' into pythongh-59396-scrolledtext-ttk
gh-59396: Add use_ttk parameter to tkinter ScrolledText (GH-153119)
serhiy-storchaka commentedon Jul 10, 2026
All dialogs and widgets implemented in Python are now themed by default or have an option.