pack forget
Takes widgets out of the list of their container and off the screen.
pack forget WINDOW ?WINDOW ...?
Description
Each WINDOW leaves the list of its container and is not shown. The widget still exists, and a new pack call shows it again. A WINDOW that is not packed is left as it is.
Returns
An empty string.
Examples
% frame .fg
> frame .fg.a
> frame .fg.b
> pack .fg.a .fg.b
> pack forget .fg.a
> list [pack slaves .fg] [winfo exists .fg.a] [winfo manager .fg.a]
.fg.b 1 {}
# A widget that is not packed gives no error.
% frame .fg2
> pack forget .fg2
Errors
% pack 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