Package textInfos
[hide private]
[frames] | no frames]

Package textInfos

source code

Submodules [hide private]

Classes [hide private]
  Field
Provides information about a piece of text.
  FormatField
Provides information about the formatting of text; e.g.
  ControlField
Provides information about a control which encompasses text.
  FieldCommand
A command indicating a Field in a sequence of text and fields.
  Point
Represents a point on the screen.
  Points
Represents two points on the screen.
  Bookmark
Represents a static absolute position in some text.
  TextInfo
Provides information about a range of text in an object and facilitates access to all text in the widget.
Functions [hide private]
str
convertToCrlf(text)
Convert a string so that it contains only CRLF line endings.
source code
Variables [hide private]
  POSITION_FIRST = "first"
  POSITION_LAST = "last"
  POSITION_CARET = "caret"
  POSITION_SELECTION = "selection"
  POSITION_ALL = "all"
  UNIT_CHARACTER = "character"
  UNIT_WORD = "word"
  UNIT_LINE = "line"
  UNIT_SENTENCE = "sentence"
  UNIT_PARAGRAPH = "paragraph"
  UNIT_PAGE = "page"
  UNIT_TABLE = "table"
  UNIT_ROW = "row"
  UNIT_COLUMN = "column"
  UNIT_CELL = "cell"
  UNIT_SCREEN = "screen"
  UNIT_STORY = "story"
  UNIT_READINGCHUNK = "readingChunk"
  unitLabels = {UNIT_CHARACTER: _("character"), UNIT_WORD: _("wo...
  RE_EOL = re.compile("\r\n|[\n\r]")
Function Details [hide private]

convertToCrlf(text)

source code 

Convert a string so that it contains only CRLF line endings.

Parameters:
  • text (str) - The text to convert.
Returns: str
The converted text.

Variables Details [hide private]

unitLabels

Value:
{UNIT_CHARACTER: _("character"), UNIT_WORD: _("word"), UNIT_LINE: _("l\
ine"), UNIT_PARAGRAPH: _("paragraph"),}