code: def waitFor(self, timeout, notification, **kwargs):
          
          return self._waitFor(timeout, notification, **kwargs)
docs: Generic wait for a UI event that matches the specified
          criteria to occur.
  
          For customization of the callback, use keyword args labeled
          'callback', 'args', and 'kwargs' for the callback fn, callback args,
          and callback kwargs, respectively.  Also note that on return,
          the observer-returned UI element will be included in the first
          argument if 'args' are given.  Note also that if the UI element is
          destroyed, callback should not use it, otherwise the function will
          hang.