code: def allow_events(self, mode, time, onerror = None):
          
          request.AllowEvents(display = self.display,
                              onerror = onerror,
                              mode = mode,
                              time = time)
docs: Release some queued events. mode should be one of
          X.AsyncPointer, X.SyncPointer, X.AsyncKeyboard, X.SyncKeyboard,
          X.ReplayPointer, X.ReplayKeyboard, X.AsyncBoth, or X.SyncBoth.
          time should be a timestamp or X.CurrentTime.