Previous topic

event_queue

Next topic

events

This Page

event_system

class pyogp.lib.base.event_system.EventsHandler(settings=None)

general class handling individual events

initialize the EventsHandler

is_event_handled(event_name)
if the event is being monitored, return True, otherwise, return False
class pyogp.lib.base.event_system.EventNotifier(event_name, settings, timeout=0)

access points for subscribing to application wide events. timeout = 0 for no timeout

initialize an event notifier by name, with an optional timeout

received(event)
notifies subscribers about an event firing and passes along the data
subscribe(*args, **kwdargs)
register a callback handler for a specific event, starting the timer if != 0, otherwise it will watch until forced to unsubscribe by the caller
unsubscribe(*args, **kwdargs)
stop watching this event