Next: Dispatching Events; The Command Builder, Previous: Stream Pairs, Up: Events and the Event Loop [Contents][Index]
character_to_event()
, event_to_character()
,
event-to-character
, and character-to-event
convert between
characters and keypress events corresponding to the characters. If the
event was not a keypress, event_to_character()
returns -1 and
event-to-character
returns nil
. These functions convert
between character representation and the split-up event representation
(keysym plus mod keys).