winfo id
Gives the identifier of the platform for a widget.
winfo id WINDOW
Description
A hexadecimal number that is unique in the application. winfo pathname gives the widget of an identifier.
Returns
A hexadecimal string such as 0xa02e60.
Examples
% frame .i
> string match 0x* [winfo id .i]
1
Errors
% winfo id
wrong # args: should be "winfo id window"
-errorcode NONE
% winfo id .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