grid forget
Takes widgets out of the grid and off the screen, and drops their options.
grid forget WINDOW ?WINDOW ...?
Description
Each WINDOW leaves the grid and is not shown. The widget still exists. Its grid options go back to their defaults, so a new grid call puts it in the next free cell. A WINDOW that is not in a grid is left as it is.
Returns
An empty string.
Examples
% frame .fg
> frame .fg.a
> grid .fg.a -row 1 -column 1
> grid forget .fg.a
> grid .fg.a
> lrange [grid info .fg.a] 2 5
-column 0 -row 0
Errors
% grid forget .fg.none
bad window path name ".fg.none"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1