next up previous contents
Next: Indices Up: A Short Introduction to Previous: Menus

The Editor


An editor (also called a text widget) is a very flexible and powerful widget to display and edit texts. As opposed to labels and messages, is scrollable (i.e. an instance of class ScrollBar.html#ScrollBar.HasScrollerHasScroller), but its chief difference to labels and messages are that it can be edited and has text tags, which make into one of Tk's most powerful widgets.

Editors are created with newEditor. The datatype Editor is monomorphic, but editors have a value (their textual content), and are thus members of the class HasValue.

Besides the usual, editors provide configurations to

Text can be appended (appendText) or inserted at a specified position into the editor with the function Editor.html#Editor.insertTextinsertText:

The position where the text is inserted is specified by the class HasIndex.

Christoph Lueth
Wed May 29 13:20:38 MEST 2002