deluge.core.eventmanager

class deluge.core.eventmanager.EventManager

Bases: deluge.component.Component

deregister_event_handler(event, handler)

Deregisters an event handler function.

Parameters:
  • event – str, the event name
  • handler – function, currently registered to handle :param:event
emit(event)

Emits the event to interested clients.

Parameter:event – DelugeEvent
register_event_handler(event, handler)

Registers a function to be called when a :param:event is emitted.

Parameters:
  • event – str, the event name
  • handler – function, to be called when :param:event is emitted

Previous topic

deluge.core.daemon

Next topic

deluge.core.filtermanager

This Page