winfo atom
Gives the number of an atom name.
winfo atom ?-displayof WINDOW? NAME
Description
An atom is a number for a name, as in X11. The same NAME gives the same number in the application. ztk accepts -displayof with any WINDOW.
Returns
An integer.
Examples
% expr {[winfo atom foo] == [winfo atom foo]}
1
Errors
% winfo atom a b c
wrong # args: should be "winfo atom ?-displayof window? name"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1