source/event.tcl
| Procedure Summary |
bind { tag name handler {param -async} }Register a handler to be executed when a certain event |
generate { tag name {params {}} }Emit an event and execute associated |
unbind { bindid }Unregister a previously registered |
| Procedure Detail |
proc bind { tag name handler {param -async} }
tag - An alphanumeric that uniquely identifies the tag. As a convention it should be all upper-case.
name - An alphanumeric that uniquely identifies the event's name. As a convention it should be all upper-case.
handler - Some code to be executed, typically the full path to a procedure.
proc generate { tag name {params {}} }
tag - An alphanumeric that uniquely identifies the tag. As a convention it should be all upper-case.
name - An alphanumeric that uniquely identifies the event's name. As a convention it should be all upper-case.
params - Optional list of arguments that accompany the event and provide extra information.
@error
proc unbind { bindid }
id - The binding id as returned by 'bind'.