Skip to content

gh-151920: Add the ttk.Style.theme_styles() method#151921

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:tkinter-ttk-theme-styles
Jun 22, 2026
Merged

gh-151920: Add the ttk.Style.theme_styles() method#151921
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:tkinter-ttk-theme-styles

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jun 22, 2026

Copy link
Copy Markdown
Member

Wrap the Tk 9.0 ttk::style theme styles ?themeName? subcommand as ttk.Style.theme_styles(themename=None), returning the list of styles defined in a theme (the current theme if themename is omitted). It is a clean introspection peer of the existing ttk.Style.theme_names().

Tested locally against Tcl/Tk 9.0.4 and 9.1b0.

🤖 Generated with Claude Code

Wrap the Tk 9.0 ``ttk::style theme styles ?themeName?`` subcommand as
ttk.Style.theme_styles(themename=None), returning the list of styles
defined in a theme (the current theme if themename is omitted).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33254067 | 📁 Comparing c35e491 against main (34eca5a)

  🔍 Preview build  

3 files changed
± library/tkinter.ttk.html
± whatsnew/3.16.html
± whatsnew/changelog.html

@serhiy-storchaka serhiy-storchaka merged commit 27148d0 into python:main Jun 22, 2026
51 checks passed
@serhiy-storchaka serhiy-storchaka deleted the tkinter-ttk-theme-styles branch June 22, 2026 17:43
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