Home | Trees | Indices | Help |
|
---|
|
A node in the tree of UI elements. This class is mixed in with Accessibility.Accessible to both make it easier to use and to add additional functionality. It also has a debugName which is set up automatically when doing searches.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
debugName debug name assigned during search operations |
|||
dead Is the node dead (defunct) ? |
|||
children a list of this Accessible's children |
|||
string |
roleName Gets the unlocalized role name of the accessible from the cache if it is available, otherwise, fetches it remotely. |
||
Accessibility.Role |
role Gets the role of the accessible from the cache if it is available, otherwise, fetches it remotely. |
||
integer |
indexInParent Gets the index of this accessible in its parent. |
||
actions A dictionary of supported action names as keys, with Action objects as values. |
|||
combovalue The value (as a string) currently selected in the combo box. |
|||
URI | |||
text For instances with an AccessibleText interface, the text as a string. |
|||
caretOffset For instances with an AccessibleText interface, the caret offset as an integer. |
|||
position A tuple containing the position of the Accessible: (x, y) |
|||
size A tuple containing the size of the Accessible: (w, h) |
|||
extents A tuple containing the location and size of the Accessible: (x, y, w, h) |
|||
labeler 'labeller' (read-only list of Node instances): The node(s) that is/are a label for this node. |
|||
labeller See labeler |
|||
labelee 'labellee' (read-only list of Node instances): The node(s) that this node is a label for. |
|||
labellee See labelee |
|||
sensitive Is the Accessible sensitive (i.e. |
|||
showing | |||
focusable Is the Accessible capable of having keyboard focus? |
|||
focused Does the Accessible have keyboard focus? |
|||
checked Is the Accessible a checked checkbox? |
|||
isSelected Is the Accessible selected? |
|||
selectedChildren Returns a list of children that are selected. |
|||
value | |||
minValue | |||
minValueIncrement | |||
maxValue |
|
Perform the action with the specified name. For a list of actions supported by this instance, check the 'actions' property. |
Generates a raw mouse click event, using the specified button.
|
FIXME: this needs rewriting... Generate a SearchPath instance giving the 'best' way to find the Accessible wrapped by this node again, starting at the root and applying each search in turn. This is somewhat analagous to an absolute path in a filesystem, except that some of searches may be recursive, rather than just searching direct children. Used by the recording framework for identifying nodes in a persistent way, independent of the style of script being written. FIXME: try to ensure uniqueness FIXME: need some heuristics to get 'good' searches, whatever that means |
Get a (ancestorNode, predicate, isRecursive) triple that identifies the best way to find this Node uniquely. FIXME: or None if no such search exists? FIXME: may need to make this more robust FIXME: should this be private? |
Search for a node satisyfing the predicate, returning a Node. If retry is True (the default), it makes multiple attempts, backing off and retrying on failure, and eventually raises a descriptive exception if the search fails. If retry is False, it gives up after one attempt. If requireResult is True (the default), an exception is raised after all attempts have failed. If it is false, the function simply returns None. |
Finds a child satisying the given criteria. This is implemented using findChild, and hence will automatically retry if no such child is found, and will eventually raise an exception. It also logs the search. |
Search below this node for a menu with the given name. This is implemented using findChild, and hence will automatically retry if no such child is found, and will eventually raise an exception. It also logs the search. |
Search below this node for a menu item with the given name. This is implemented using findChild, and hence will automatically retry if no such child is found, and will eventually raise an exception. It also logs the search. |
Search below this node for a text entry with the given name. This is implemented using findChild, and hence will automatically retry if no such child is found, and will eventually raise an exception. It also logs the search. |
Search below this node for a button with the given name. This is implemented using findChild, and hence will automatically retry if no such child is found, and will eventually raise an exception. It also logs the search. |
Search below this node for a child labelled with the given text. This is implemented using findChild, and hence will automatically retry if no such child is found, and will eventually raise an exception. It also logs the search. |
Search below this node for a child with the given name. This is implemented using findChild, and hence will automatically retry if no such child is found, and will eventually raise an exception. It also logs the search. |
Search below this node for a tab with the given name. This is implemented using findChild, and hence will automatically retry if no such child is found, and will eventually raise an exception. It also logs the search. |
Get all user-visible strings in this node and its descendents. (Could be implemented as an attribute) |
|
debugNamedebug name assigned during search operations
|
deadIs the node dead (defunct) ?
|
childrena list of this Accessible's children
|
roleNameGets the unlocalized role name of the accessible from the cache if it is available, otherwise, fetches it remotely.
|
roleGets the role of the accessible from the cache if it is available, otherwise, fetches it remotely.
|
indexInParentGets the index of this accessible in its parent. Uses the implementation of this method provided by the Accessibility.Accessible object, but checks the bound of the value to ensure it is not outside the range of childCount reported by this accessible's parent.
|
actionsA dictionary of supported action names as keys, with Action objects as values. Common action names include: 'click' 'press' 'release' 'activate' 'jump' 'check' 'dock' 'undock' 'open' 'menu'
|
combovalueThe value (as a string) currently selected in the combo box.
|
URI
|
textFor instances with an AccessibleText interface, the text as a string. This is read-only, unless the instance also has an AccessibleEditableText interface. In this case, you can write values to the attribute. This will get logged in the debug log, and a delay will be added. If this instance corresponds to a password entry, use the passwordText property instead. |
caretOffsetFor instances with an AccessibleText interface, the caret offset as an integer.
|
positionA tuple containing the position of the Accessible: (x, y)
|
sizeA tuple containing the size of the Accessible: (w, h)
|
extentsA tuple containing the location and size of the Accessible: (x, y, w, h)
|
labeler'labeller' (read-only list of Node instances): The node(s) that is/are a label for this node. Generated from 'relations'.
|
labellerSee labeler
|
labelee'labellee' (read-only list of Node instances): The node(s) that this node is a label for. Generated from 'relations'.
|
labelleeSee labelee
|
sensitiveIs the Accessible sensitive (i.e. not greyed out)?
|
showing
|
focusableIs the Accessible capable of having keyboard focus?
|
focusedDoes the Accessible have keyboard focus?
|
checkedIs the Accessible a checked checkbox?
|
isSelectedIs the Accessible selected?
|
selectedChildrenReturns a list of children that are selected.
|
minValue
|
minValueIncrement
|
maxValue
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Oct 8 15:43:22 2009 | http://epydoc.sourceforge.net |