event info
Gives the virtual events, or the sequences of one virtual event.
event info ?VIRTUAL?
Description
With no VIRTUAL, gives the names of the virtual events that have a sequence. With VIRTUAL, gives its sequences in the form of bind, so <1> is <Button-1>. A virtual event with no sequence gives an empty list.
Returns
A list of names or of sequences.
Examples
% event add <<Open2>> <Control-Key-o>
> expr {"<<Open2>>" in [event info]}
1
% event info <<Nope>>
Errors
% event info x
virtual event "x" is badly formed
-errorcode NONE
% event info a b
wrong # args: should be "event info ?<<virtual>>?"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1