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
Tk 9.0 added the
ttk::style theme styles ?themeName?subcommand, which returns the list of styles defined in a theme (the current theme ifthemeNameis omitted). It is a clean introspection peer of the already-wrappedttk::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