beetlebug▾
/

grid remove

Takes widgets out of the grid and off the screen, and keeps their options.

grid remove WINDOW ?WINDOW ...?

Description

Each WINDOW leaves the grid and is not shown, as with grid forget. The widget keeps its grid options, so a new grid call with no options puts it back in the same cell.

Returns

An empty string.

Examples

% frame .rm
> frame .rm.a
> grid .rm.a -row 1 -column 1 -padx 7
> grid remove .rm.a
> set out [grid slaves .rm]
> grid .rm.a
> list $out [lrange [grid info .rm.a] 2 5]
{} {-column 1 -row 1}

Errors

% grid remove .rm.none
bad window path name ".rm.none"
-errorcode NONE

Facts

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

See also