winfo name
Gives the last part of the path name of a widget.
winfo name WINDOW
Description
For ., the result is the name of the application.
Returns
A name.
Examples
% frame .n1
> frame .n1.inner
> winfo name .n1.inner
inner
Errors
% winfo name
wrong # args: should be "winfo name window"
-errorcode NONE
% winfo name .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