Lines Matching refs:event
3 example), but enables multiple calls of functions per virtual event - all
5 by wrapping the event functions - event_add, event_delete and event_info.
6 MultiCall recognizes only a subset of legal event sequences. Sequences which
8 more-specific event will be called before a less-specific event.
10 The recognized sequences are complete one-event sequences (no emacs-style
17 event instance passed to the binded functions - mc_type. This is one of the
18 event type constants defined in this module (such as MC_KEYPRESS).
26 1. A more-specific event will be called before a less-specific event.
27 2. A recently-binded event will be called before a previously-binded event,
29 Each function will be called at most once for each event.
36 # the event type constants, which define the meaning of mc_type
46 # define the list of modifiers, to be used in complex event types.
65 # A binder is a class which binds functions to one type of event. It has two
68 # _SimpleBinder handles event types with no modifiers and no detail.
70 # _ComplexBinder handles event types with modifiers and a detail.
71 # A Python function is called each time an event is generated.
84 def handler(event, l = self.bindedfuncs, mc_type = self.type):
85 event.mc_type = mc_type
91 r = func(event)
162 def handler(event, lists = lists,
167 event.mc_type = mc_type
168 event.mc_state = mc_state
176 r = l[i](event)
199 # change to happen from the next event. So we have a list of functions
246 # define the list of event types to be handled by MultiEvent. the order is
247 # compatible with the definition of event type constants.
257 # which binder should be used for every event type?
268 """Get a string which should describe an event sequence. If it is
270 the event type (as an index of _types), and the detail - None if none, or a
327 # a dictionary which maps a virtual event to a tuple with:
425 def handler(event):