Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/sugar/tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sugar/tree.py')
-rw-r--r--tests/sugar/tree.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sugar/tree.py b/tests/sugar/tree.py
index 88080c0..1438acc 100644
--- a/tests/sugar/tree.py
+++ b/tests/sugar/tree.py
@@ -4,9 +4,11 @@ from gi.repository import Atspi
Atspi.set_timeout(-1, -1)
+
def get_root():
return Node(Atspi.get_desktop(0))
+
def _retry_find(func):
def wrapped(*args, **kwargs):
result = None
@@ -33,6 +35,7 @@ def _retry_find(func):
return wrapped
+
class Node:
def __init__(self, accessible):
self._accessible = accessible