GNOME Bugzilla – Bug 498687
No getText method
Last modified: 2007-11-26 16:25:56 UTC
Try to use Application in script with pyatspi branch: class EogApp(Application): def __init__(self): Application.not__init__(self, root.application("eog")) ... Error output:
+ Trace 179063
self.__text = self.__accessible.getText()
There is not getText method, only have _getText. Also not getEditableText() and getEditableText()
Zack prepended all methods which are not supposed to be used anymore with "not" So methods like not__init__, not__getattr__ and not_setattr__ are deprecated and should not be used. If you wonder if __init__ is missing, please see the end of tree.py: Accessibility.Accessible.__bases__ = (Node,) + Accessibility.Accessible.__bases__ ... this line inserts Node into Accessible's base classes, so every Accessible automagically becomes a Node, and Accessible's __init__ is used. The two __?etattr__ methods were replaced by properties.
Yes, the not_* methods are only still in svn to remind me of which functionality has yet to be ported over in the branch.