ttk::style layout
Gives or sets the layout of the elements of a style.
ttk::style layout STYLE ?LAYOUT?
Description
A layout is a list of element names, each with options such as -sticky, -side, -border, and -children. With no LAYOUT, gives the layout of STYLE. With LAYOUT, stores it. In ztk, CSS draws each part of a widget, so a layout has no effect on the look. A script of Tk that reads or sets a layout runs.
Returns
A layout, or an empty string.
Examples
% ttk::style layout Plain.TButton {Button.label -sticky nswe}
> ttk::style layout Plain.TButton
Button.label -sticky nswe
Errors
% ttk::style layout Nosuch
Layout Nosuch not found
-errorcode NONE
% ttk::style layout
wrong # args: should be "ttk::style layout name ?spec?"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1