ttk.Style

class ttk.Style(master=None)[source]

Manipulate style database.

Methods

__format__ default object formatter
__init__([master])
__new__((S, ...)
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__(() -> int) size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
configure(style[, query_opt]) Query or sets the default value of the specified option(s) in style.
element_create(elementname, etype, *args, **kw) Create a new element in the current theme of given etype.
element_names() Returns the list of elements defined in the current theme.
element_options(elementname) Return the list of elementname’s options.
layout(style[, layoutspec]) Define the widget layout for given style.
lookup(style, option[, state, default]) Returns the value specified for option in style.
map(style[, query_opt]) Query or sets dynamic values of the specified option(s) in style.
theme_create(themename[, parent, settings]) Creates a new theme.
theme_names() Returns a list of all known themes.
theme_settings(themename, settings) Temporarily sets the current theme to themename, apply specified settings and then restore the previous theme.
theme_use([themename]) If themename is None, returns the theme in use, otherwise, set the current theme to themename, refreshes all widgets and emits a <<ThemeChanged>> event.