+import api\r
import controlTypes\r
import eventHandler\r
import winUser\r
class AcrobatTextNode(EditableText, AcrobatNode):\r
TextInfo = AcrobatTextInfo\r
\r
+ def _get_parent(self):\r
+ #hack: This code should be taken out once the crash is fixed in Adobe Reader X.\r
+ #If going parent on a root text node after saying ok to the accessibility options (untagged) and before the processing document dialog appears, Reader X will crash.\r
+ if self.event_childID==0:\r
+ return api.getDesktopObject()\r
+ else:\r
+ return super(AcrobatTextNode,self).parent\r
+\r
class AcrobatSDIWindowClient(IAccessible):\r
\r
def __init__(self, **kwargs):\r