FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-59396: Add use_ttk parameter to tkinter ScrolledText by serhiy-storchaka · Pull Request #153119 · python/cpython · GitHub

Repository navigation

gh-59396: Add use_ttk parameter to tkinter ScrolledText - #153119

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:gh-59396-scrolledtext-ttk
Jul 10, 2026
Merged

serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:gh-59396-scrolledtext-ttk

Conversation

Copy link
Copy Markdown
Member

Following the themed-widget work for the tkinter dialogs (simpledialog in #151848, filedialog in #152036), tkinter.scrolledtext.ScrolledText gained a keyword-only use_ttk parameter to build the surrounding frame and the vertical scroll bar from the themed tkinter.ttk widgets instead of the classic tkinter widgets.

The classic widgets remain the default for now: ScrolledText.frame and ScrolledText.vbar are documented public attributes, and classic-only scroll bar options (e.g. troughcolor, width) would not apply to a ttk.Scrollbar. use_ttk=True opts into the themed widgets.

The text widget itself stays the classic Text, as tkinter.ttk has no themed counterpart.

ScrolledText gained a keyword-only use_ttk parameter to build the
surrounding frame and the vertical scroll bar from the themed
tkinter.ttk widgets instead of the classic tkinter widgets.  The
classic widgets remain the default.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

read-the-docs-community Bot commented Jul 5, 2026 •
edited
Loading

Copy link
Copy Markdown

serhiy-storchaka enabled auto-merge (squash) July 10, 2026 16:41
serhiy-storchaka merged commit fbce45b into python:main Jul 10, 2026
51 checks passed
serhiy-storchaka deleted the gh-59396-scrolledtext-ttk branch July 15, 2026 11:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL