winfo toplevel
Gives the toplevel that contains a widget.
winfo toplevel WINDOW
Description
For a toplevel, the result is the toplevel itself.
Returns
A widget name.
Examples
% toplevel .tt
> frame .tt.in
> list [winfo toplevel .tt.in] [winfo toplevel .tt]
.tt .tt
Errors
% winfo toplevel
wrong # args: should be "winfo toplevel window"
-errorcode NONE
% winfo toplevel .nope
bad window path name ".nope"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1