
8. The Text Widget 25
-spacing1 => size Space in screen units above
paragraphs.
-spacing2 => size Space in screen units between
paragraph lines.
-spacing3 => size Space in screen units below
paragraphs.
-tabs => tabList
Set of tab stops as a list of screen distances giving their
positions. Each stop may be followed by one of
left,
right, center, or numeric.
-wrap => none| char| word
How to wrap lines.
Text Indices
Syntax: base ?modifier ... ?
Base: line.char (line starts at 1, char starts at 0),
@x,y,
end, mark, tag.first, tag.last, widgetRef
(embedded window), image (embedded image)
Modifier: count
chars, count lines, linestart,
lineend, wordstart, wordend
Ranges: Ranges include all characters from the start index
up to but not including the character at the stop
index.
Text Tag Options
-highlightthickness -takefocus
-insertbackground -width
-insertborderwidth -xscrollcommand
-insertofftime -yscrollcommand
-insertontime
-background -relief
-borderwidth -spacing1
-font -spacing2