code: def get_event(self, listener, timeout):
          
          if not isinstance(listener, IEventListener):
              raise TypeError("listener can only be an instance of type IEventListener")
          if not isinstance(timeout, baseinteger):
              raise TypeError("timeout can only be an instance of type baseinteger")
          event = self._call("getEvent",
                       in_p=[listener, timeout])
          event = IEvent(event)
          return event
docs: Get events from this peer's event queue (for passive mode). Calling this method
          regularly is required for passive event listeners to avoid system overload;
          see :py:func:`IEventSource.register_listener`  for details.
  
          in listener of type :class:`IEventListener`
              Which listener to get data for.
  
          in timeout of type int
              Maximum time to wait for events, in ms;
              0 = no wait, -1 = indefinite wait.
  
          return event of type :class:`IEvent`
              Event retrieved, or null if none available.
  
          raises :class:`VBoxErrorObjectNotFound`
              Listener is not registered, or autounregistered.