beetlebug▾
/

ttk::style configure

Gives or sets the default values of the options of a style.

ttk::style configure STYLE
ttk::style configure STYLE OPTION
ttk::style configure STYLE OPTION VALUE ?OPTION VALUE ...?

Description

With no OPTION, gives a list of the options that the script set on STYLE and their values. With one OPTION, gives its value, or an empty string. With pairs, sets the values. The style . is the base of each style, so a value on . applies to each widget with no value of its own. An option name can be each name: ztk stores an unknown name for lookup.

Returns

A list of options and values, a value, or an empty string.

Examples

% ttk::style configure Big.TLabel -font {Helvetica 18} -padding 4
> ttk::style configure Big.TLabel -padding
4

% ttk::style configure . -foreground navy
> ttk::style lookup TLabel -foreground
navy

Errors

% ttk::style configure
wrong # args: should be "ttk::style configure style ?-option ?value...??"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also