Overview of Item Types
pathName create textfile [option value option value ...]There may be any number of option-value pairs, each of which sets one of the configuration options for the item. These same option-value pairs may be used in itemconfigure widget commands to change the item's configuration. The following options are supported for text items:
-file [22]
File an item should be defined by
-font
[24] Specifies font to use for text
-pen
[45] Specifies pen color of item
-text [56]
(Read-only) The text of any item containing text
-writeformat [69]
Controls whether disk-based item is written out by copy or reference
Also, see the text [91]
command that can be used to manipulate text items.
Text items have default event bindings which can be used for emacs-style editing of them. See the section on Default Bindings for more info.
Copyright Computer Science Department, The University of New Mexico