#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-import interfaces
+from interfaces import *
from base import BaseProxyMeta
from accessible import BoundingBox
from state import StateSet
self._app_name = ':'
self._acc_path = '/'
+ def __str__(self):
+ try:
+ return '[%s | %s]' % (self.getRoleName(), self.name)
+ except Exception:
+ return '[DEAD]'
+
def __nonzero__(self):
return True
@property
def interfaces(self):
- return [interfaces.ATSPI_ACCESSIBLE, interfaces.ATSPI_COMPONENT]
+ return [ATSPI_ACCESSIBLE, ATSPI_COMPONENT]
def queryInterface(self, interface):
"""
or raises a NotImplemented error if the given interface
is not supported.
"""
- if interface == interfaces.ATSPI_ACCESSIBLE:
+ if interface == ATSPI_ACCESSIBLE:
return self
- elif interface == interfaces.ATSPI_COMPONENT:
+ elif interface == ATSPI_COMPONENT:
return DesktopComponent()
else:
raise NotImplementedError(