winfo exists
Gives whether a widget exists.
winfo exists WINDOW
Description
1 when WINDOW is the name of a widget of the application. Any other string gives 0, also an image name or an empty string.
Returns
0 or 1.
Examples
% frame .ex
> list [winfo exists .ex] [winfo exists .nope] [winfo exists {}]
1 0 0
Errors
% winfo exists
wrong # args: should be "winfo exists window"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1