Skip to content

Add the ttk.Style.theme_styles() method #151920

Description

@serhiy-storchaka

Tk 9.0 added the ttk::style theme styles ?themeName? subcommand, which returns the list of styles defined in a theme (the current theme if themeName is omitted). It is a clean introspection peer of the already-wrapped ttk::style theme names (ttk.Style.theme_names()).

tkinter does not yet wrap it. Proposal: add tkinter.ttk.Style.theme_styles(themename=None), returning a tuple of style names.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-tkintertype-featureA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions