Lines Matching refs:event
1 """A generally useful event scheduler class.
19 event means calling the action function, passing it the argument
42 Event.action.__doc__ = ('''Executing the event means executing
63 """Enter a new event in the queue at an absolute time.
65 Returns an ID for the event which can be used to remove it,
73 event = Event(time, priority, next(self._sequence_generator),
75 heapq.heappush(self._queue, event)
76 return event # The ID
87 def cancel(self, event):
88 """Remove an event from the queue.
91 If the event is not in the queue, this raises ValueError.
95 self._queue.remove(event)
109 When there is a positive delay until the first event, the
110 delay function is called and the event is left in the queue;
111 otherwise, the event is removed from the queue and executed
122 just after an event is executed, a delay of 0 is executed, to