platypush/event/__init__.py
def register_handler(self, event_type, callback):
        """
        Registers a callback handler for a camera event type.

        :param event_type: Event type to listen to. Must be a subclass of
            :class:`platypush.message.event.Event`
        :type event_type: :class:`platypush.message.event.Event` or a subclass

        :param callback: Callback function. It will take an event of type
            :class:`platypush.message.event.Event` as a parameter
        :type callback: function
        """

        if event_type not in self._event_handlers:
            self._event_handlers[event_type] = set()
        self._event_handlers[event_type].add(callback)

        Registers a callback handler for a camera event type.

        :param event_type: Event type to listen to. Must be a subclass of
            :class:`platypush.message.event.Event`
        :type event_type: :class:`platypush.message.event.Event` or a subclass

        :param callback: Callback function. It will take an event of type
            :class:`platypush.message.event.Event` as a parameter
        :type callback: function
        
Registers a callback handler for a camera event type.
Registers a callback handler for a camera event type .
def register_handler(self, event_type, callback):
        if event_type not in self._event_handlers:
            self._event_handlers[event_type] = set()
        self._event_handlers[event_type].add(callback)
def register_handler ( self , event_type , callback ) : if event_type not in self . _event_handlers : self . _event_handlers [ event_type ] = set ( ) self . _event_handlers [ event_type ] . add ( callback )
Registers a callback handler for a camera event type.
Registers a callback handler for a camera event type .
"""
        Registers a callback handler for a camera event type.

        :param event_type: Event type to listen to. Must be a subclass of
            :class:`platypush.message.event.Event`
        :type event_type: :class:`platypush.message.event.Event` or a subclass

        :param callback: Callback function. It will take an event of type
            :class:`platypush.message.event.Event` as a parameter
        :type callback: function
        """
self
event_type
Event type to listen to. Must be a subclass of
:class:`platypush.message.event.Event`
Event type to listen to . Must be a subclass of : class : ` platypush . message . event . Event `
callback
Callback function. It will take an event of type
:class:`platypush.message.event.Event` as a parameter
Callback function . It will take an event of type : class : ` platypush . message . event . Event ` as a parameter