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

Module braille

source code

Classes [hide private]
  Region
A region of braille to be displayed.
  TextRegion
A simple region containing a string of text.
  NVDAObjectRegion
A region to provide a braille representation of an NVDAObject.
  ReviewNVDAObjectRegion
  TextInfoRegion
  CursorManagerRegion
  ReviewTextInfoRegion
  BrailleBuffer
  BrailleHandler
  BrailleDisplayDriver
Abstract base braille display driver.
  BrailleDisplayGesture
A button, wheel or other control pressed on a braille display.
Functions [hide private]
 
NVDAObjectHasUsefulText(obj) source code
 
_getDisplayDriver(name) source code
 
getDisplayList() source code
 
getBrailleTextForProperties(**propertyValues) source code
 
getControlFieldBraille(field, ancestors, reportStart, formatConfig) source code
 
getFormatFieldBraille(field) source code
 
rindex(seq, item, start, end) source code
 
invalidateCachedFocusAncestors(index)
Invalidate cached focus ancestors from a given index.
source code
 
getFocusContextRegions(obj, oldFocusRegions=None) source code
 
getFocusRegions(obj, review=False) source code
 
initialize() source code
 
terminate() source code
Variables [hide private]
  TABLES_DIR = r"louis\tables"
  TABLES = "ar-ar-g1.utb", _("Arabic grade 1"), ("bg.ctb", _("Bu...
  roleLabels = {controlTypes.ROLE_EDITABLETEXT: _("edt"), contro...
  positiveStateLabels = {controlTypes.STATE_CHECKED: _("(x)"), c...
  negativeStateLabels = {controlTypes.STATE_CHECKED: _("( )"),}
  DOT7 = 64
  DOT8 = 128
  _cachedFocusAncestorsEnd = 0
Function Details [hide private]

invalidateCachedFocusAncestors(index)

source code 

Invalidate cached focus ancestors from a given index. This will cause regions to be generated for the focus ancestors >= index next time getFocusContextRegions is called, rather than using cached regions for those ancestors.

Parameters:
  • index (int) - The index from which cached focus ancestors should be invalidated.

Variables Details [hide private]

TABLES

Value:
"ar-ar-g1.utb", _("Arabic grade 1"), ("bg.ctb", _("Bulgarian 8 dot com\
puter braille")), ("cy-cy-g1.utb", _("Welsh grade 1")), ("cy-cy-g2.ctb\
", _("Welsh grade 2")), ("cz-cz-g1.utb", _("Czech grade 1")), ("da-dk-\
g1.utb", _("Danish grade 1")), ("de-de-comp8.ctb", _("German 8 dot com\
puter braille")), ("de-de-g0.utb", _("German grade 0")), ("de-de-g1.ct\
b", _("German grade 1")), ("de-de-g2.ctb", _("German grade 2")), ("en-\
gb-g1.utb", _("English (U.K.) grade 1")), ("en-GB-g2.ctb", _("English \
(U.K.) grade 2")), ("en-us-comp6.ctb", _("English (U.S.) 6 dot compute\
...

roleLabels

Value:
{controlTypes.ROLE_EDITABLETEXT: _("edt"), controlTypes.ROLE_LIST: _("\
lst"), controlTypes.ROLE_MENUBAR: _("mnubar"), controlTypes.ROLE_POPUP\
MENU: _("mnu"), controlTypes.ROLE_BUTTON: _("btn"), controlTypes.ROLE_\
CHECKBOX: _("chk"), controlTypes.ROLE_RADIOBUTTON: _("rbtn"), controlT\
ypes.ROLE_COMBOBOX: _("cbo"), controlTypes.ROLE_LINK: _("lnk"), contro\
lTypes.ROLE_DIALOG: _("dlg"), controlTypes.ROLE_TREEVIEW: _("tv"), con\
trolTypes.ROLE_TABLE: _("tb"), controlTypes.ROLE_SEPARATOR: _("-----")\
,}

positiveStateLabels

Value:
{controlTypes.STATE_CHECKED: _("(x)"), controlTypes.STATE_HALFCHECKED:\
 _("(-)"), controlTypes.STATE_SELECTED: _("sel"), controlTypes.STATE_H\
ASPOPUP: _("submnu"), controlTypes.STATE_AUTOCOMPLETE: _("..."), contr\
olTypes.STATE_EXPANDED: _("-"), controlTypes.STATE_COLLAPSED: _("+"), \
controlTypes.STATE_READONLY: _("ro"),}