Package param :: Module external :: Class Style
[hide private]
[frames] | no frames]

Class Style

source code


Instance Methods [hide private]
 
default(self, style, **kw)
Sets the default value of the specified option(s) in style
source code
 
map_style(self, **kw)
Sets dynamic values of the specified option(s) in style.
source code
 
layout(self, style, layoutSpec)
Define the widget layout for style style.
source code
 
element_create(self, name, type, *args)
Creates a new element in the current theme of type type.
source code
 
element_names(self)
Returns a list of all elements defined in the current theme.
source code
 
theme_create(self, name, parent=None, basedon=None)
Creates a new theme.
source code
 
theme_settings(self, name, script)
Temporarily sets the current theme to themeName, evaluate script, then restore the previous theme.
source code
 
theme_names(self)
Returns a list of the available themes.
source code
 
theme_use(self, theme)
Sets the current theme to themeName, and refreshes all widgets.
source code
Method Details [hide private]

map_style(self, **kw)

source code 
Sets dynamic values of the specified option(s) in style. See "STATE MAPS", below.

layout(self, style, layoutSpec)

source code 
Define the widget layout for style style. See "LAYOUTS" below for the format of layoutSpec. If layoutSpec is omitted, return the layout specification for style style.

element_create(self, name, type, *args)

source code 
Creates a new element in the current theme of type type. The only built-in element type is image (see image(n)), although themes may define other element types (see Ttk_RegisterElementFactory).

theme_create(self, name, parent=None, basedon=None)

source code 
Creates a new theme. It is an error if themeName already exists. If -parent is specified, the new theme will inherit styles, elements, and layouts from the parent theme basedon. If -settings is present, script is evaluated in the context of the new theme as per style theme settings.

theme_settings(self, name, script)

source code 
Temporarily sets the current theme to themeName, evaluate script, then restore the previous theme. Typically script simply defines styles and elements, though arbitrary Tcl code may appear.