Chapter 13

The text Widget and htmllib

The message, label, and entry widgets are useful for applications with short prompts and small amounts of data to enter. That is, for applications that resemble filling out a form. However, some applications need to allow the user to display, enter, or edit large amounts of text. The text widget supports this type of application. The text widget supports the following.

• Emacs-style editing

• Arrow-key-style editing

• Scrollbars

• Multiple fonts in a single document

• Tagging a single character or multiple-character strings (in a similar manner to the way tags are applied to canvas objects)

• Marking positions in the text

• Inserting other Tk widgets or images into the text display

• Binding events to a ...

Get Tcl/Tk, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.