Module displayModel
[hide private]
[frames] | no frames]

Module displayModel

source code

Classes [hide private]
  DisplayModelTextInfo
A default TextInfo which is used to enable text review of information about widgets that don't support text content.
  EditableTextDisplayModelTextInfo
A default TextInfo which is used to enable text review of information about widgets that don't support text content.
Functions [hide private]
 
initialize() source code
 
getWindowTextInRect(bindingHandle, windowHandle, left, top, right, bottom, minHorizontalWhitespace, minVerticalWhitespace, useXML=False) source code
 
requestTextChangeNotifications(obj, enable)
Request or cancel notifications for when the display text changes in an NVDAObject.
source code
 
textChangeNotify(windowHandle, left, top, right, bottom) source code
Variables [hide private]
  _getWindowTextInRect = None
hash(x)
  _requestTextChangeNotificationsForWindow = None
hash(x)
  _textChangeNotificationObjs = []
Function Details [hide private]

requestTextChangeNotifications(obj, enable)

source code 

Request or cancel notifications for when the display text changes in an NVDAObject. A textChange event (event_textChange) will be fired on the object when its text changes. Note that this event does not provide any information about the changed text itself. It is important to request that notifications be cancelled when you no longer require them or when the object is no longer in use, as otherwise, resources will not be released.

Parameters:
  • obj (NVDAObject) - The NVDAObject for which text change notifications are desired.
  • enable (bool) - True to enable notifications, False to disable them.