The Edit class, derived from File, is a top-level window that contains an emacs-like editor with emacs-like key bindings. 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.
If you are an emacs user, you will find the keystrokes used
for navigating through the text familiar.
To delete the above example:
delete object [$e displayer windowName]
set ee [::tycho::view Edit \
[list -text "Initial text in the text widget" \
-readonly 1 \
-textwidth 60 \
-scrollbar 0 \
-textheight 20]]
$ee configure -readonly 0
$ee insertData " Here is some more text"
delete object [$ee displayer windowName]