The Edit class, derived from File, is a top-level window that contains a text editor. To use effectively, you may wish to study the keyboard shortcuts. It has full capabilities for editing text, saving files, etc. The help window gives additional information.
You may create an instance of the Edit class as follows:
set e [::tycho::view Edit]
$e insertFile
This megawidget, the Edit class, can be used stand-alone inside any other widget or window. For example, the Query class uses Edit for multi-line entries.
Notice that you can enter text into the text window.
To delete the above example:
delete object [$e displayer windowName]
set ee [::tycho::view Edit \
-text "Initial text in the text widget" \
-readonly 1 \
-textwidth 60 \
-scrollbar 0 \
-textheight 20]
-readonly
option, you cannot modify
the text. You can change this, and insert more text as follows:
$ee configure -readonly 0
$ee insertData " Here is some more text"
delete object [$ee displayer windowName]