code: def send_event(self, destination, event, event_mask = 0, propagate = 0,
                     onerror = None):
          
          request.SendEvent(display = self.display,
                            onerror = onerror,
                            propagate = propagate,
                            destination = destination,
                            event_mask = event_mask,
                            event = event)
docs: Send a synthetic event to the window destination which can be
          a window object, or X.PointerWindow or X.InputFocus. event is the
          event object to send, instantiated from one of the classes in
          protocol.events. See XSendEvent(3X11) for details.
  
          There is also a Window.send_event() method.