grid size
Gives the count of columns and of rows of the grid of a container.
grid size CONTAINER
Description
The count includes each column and each row up to the last one that a widget fills, and each one that grid columnconfigure or grid rowconfigure gave a non-default value.
Returns
A list of two integers: the columns and the rows.
Examples
% frame .sz
> frame .sz.a
> grid .sz.a -row 2 -column 3 -columnspan 2
> grid size .sz
5 3
% frame .sz2
> grid size .sz2
0 0
Errors
% grid size .sz.none
bad window path name ".sz.none"
-errorcode NONE
% grid size .sz x
wrong # args: should be "grid size window"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1