code: def handle_event(self, event):
          
          if not isinstance(event, IEvent):
              raise TypeError("event can only be an instance of type IEvent")
          self._call("handleEvent",
                       in_p=[event])
docs: Handle event callback for active listeners. It is not called for
          passive listeners. After calling :py:func:`handle_event`  on all active listeners
          and having received acknowledgement from all passive listeners via
          :py:func:`IEventSource.event_processed` , the event is marked as
          processed and :py:func:`IEvent.wait_processed`  will return
          immediately.
  
          in event of type :class:`IEvent`
              Event available.