Ejemplo n.º 1
0
 def stepDone(self):
     """
 Done with this sequence step. Deregister event listeners.
 """
     if not self.done:
         pyatspi.Registry.deregisterEventListener(self.onEvent, *self.wait_for)
     return SequenceStep.stepDone(self)
Ejemplo n.º 2
0
 def stepDone(self):
     '''
 Done with this sequence step. Deregister event listeners.
 '''
     if not self.done:
         pyatspi.Registry.deregisterEventListener(self.onEvent,
                                                  *self.wait_for)
     return SequenceStep.stepDone(self)
Ejemplo n.º 3
0
 def __init__(self, event, acc_name, acc_path, acc_role, timeout):
     '''
 Initialize a L{WaitAction}
 
 @param event: Event to wait for
 @type event: string
 @param acc_name: Name of source accessible of events we are waiting for.
 @type acc_name: string
 @param acc_path: Tree path in application to source accessible.
 @type acc_path: list of integer
 @param acc_role: Role of source accessible.
 @type acc_role: integer
 @param timeout: Time to wait in milliseconds before timing out.
 @type timeout: integer
 '''
     SequenceStep.__init__(self)
     if isinstance(event, list):
         self.wait_for = event
     else:
         self.wait_for = [event]
     self._acc_name = acc_name
     self._acc_path = acc_path
     self._acc_role = acc_role
     self._timeout = timeout
Ejemplo n.º 4
0
 def __init__(self, event, acc_name, acc_path, acc_role, timeout):
     """
 Initialize a L{WaitAction}
 
 @param event: Event to wait for
 @type event: string
 @param acc_name: Name of source accessible of events we are waiting for.
 @type acc_name: string
 @param acc_path: Tree path in application to source accessible.
 @type acc_path: list of integer
 @param acc_role: Role of source accessible.
 @type acc_role: integer
 @param timeout: Time to wait in milliseconds before timing out.
 @type timeout: integer
 """
     SequenceStep.__init__(self)
     if isinstance(event, list):
         self.wait_for = event
     else:
         self.wait_for = [event]
     self._acc_name = acc_name
     self._acc_path = acc_path
     self._acc_role = acc_role
     self._timeout = timeout