GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-59396: Add use_ttk parameter to tkinter ScrolledText by serhiy-storchaka · Pull Request #153119 · python/cpython

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 5, 2026

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.

  • Issue: tkinter convenience dialogs don't use themed widgets #59396

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@serhiy-storchaka @claude
pythongh-59396: Add use_ttk parameter to tkinter ScrolledText
f401cff
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 <[email protected]>
@serhiy-storchaka
serhiy-storchaka requested a review from AA-Turner as a code owner July 5, 2026 12:14
@bedevere-app bedevere-app Bot mentioned this pull request Jul 5, 2026
tkinter convenience dialogs don't use themed widgets #59396
Closed
@bedevere-app bedevere-app Bot added the awaiting core review label Jul 5, 2026
@read-the-docs-community

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

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33534582 | 📁 Comparing 2ff785c against main (3d9d6c8)

  🔍 Preview build  

65 files changed · + 1 added · ± 64 modified

+ Added

  • library/asyncio-tools.html

± Modified

  • c-api/float.html
  • deprecations/index.html
  • deprecations/pending-removal-in-3.21.html
  • extending/first-extension-module.html
  • extending/newtypes_tutorial.html
  • faq/programming.html
  • howto/descriptor.html
  • library/ast.html
  • library/asyncio-graph.html
  • library/asyncio.html
  • and 54 more...
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@serhiy-storchaka
Merge branch 'main' into pythongh-59396-scrolledtext-ttk
2ff785c
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 10, 2026 16:41
@serhiy-storchaka
serhiy-storchaka merged commit fbce45b into python:main Jul 10, 2026
51 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting core review label Jul 10, 2026
@serhiy-storchaka
serhiy-storchaka deleted the gh-59396-scrolledtext-ttk branch July 15, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@serhiy-storchaka
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.