|
|
@ -24,9 +24,11 @@ from gi.repository import Atspi
|
|
|
|
|
|
|
|
|
|
|
|
Atspi.set_timeout(-1, -1)
|
|
|
|
Atspi.set_timeout(-1, -1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_root():
|
|
|
|
def get_root():
|
|
|
|
return Node(Atspi.get_desktop(0))
|
|
|
|
return Node(Atspi.get_desktop(0))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _retry_find(func):
|
|
|
|
def _retry_find(func):
|
|
|
|
def wrapped(*args, **kwargs):
|
|
|
|
def wrapped(*args, **kwargs):
|
|
|
|
result = None
|
|
|
|
result = None
|
|
|
@ -53,6 +55,7 @@ def _retry_find(func):
|
|
|
|
|
|
|
|
|
|
|
|
return wrapped
|
|
|
|
return wrapped
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Node:
|
|
|
|
class Node:
|
|
|
|
def __init__(self, accessible):
|
|
|
|
def __init__(self, accessible):
|
|
|
|
self._accessible = accessible
|
|
|
|
self._accessible = accessible
|
|
|
|