self._cache = cache
self._app_name = '/'
+ def __nonzero__(self):
+ return True
+
def __len__(self):
return self.getChildCount()
an in parameter indicating which child is requested (zero-indexed).
@return : the 'nth' Accessible child of this object.
"""
- return self._cache.get_application_at_index(index)
+ return self._cache.get_application_at_index(index, self)
def getIndexInParent(self):
"""
point to the same object.
"""
return self == accessible
-
+
def get_childCount(self):
return self._cache.get_application_count()
_childCountDoc = \
childCount: the number of children contained by this object.
"""
childCount = property(fget=get_childCount, doc=_childCountDoc)
+
+ getChildCount = get_childCount
def get_description(self):
return ''
"""
parent = property(fget=get_parent, doc=_parentDoc)
+ @property
+ def interfaces(self):
+ return [interfaces.ATSPI_ACCESSIBLE, interfaces.ATSPI_COMPONENT]
+
def queryInterface(self, interface):
"""
Gets a different accessible interface for this object