use Tk::TextUndo; ... $testundo = $parent->TextUndo(?option => value, ...?); ...
Bindings
The TextUndo widget has the same bindings as the the Text manpage widget.
Additionally to the the Text manpage widget there are the following bindings:
Methods
The TextUndo widget has the same methods as Text widget.
Additional method for the TextUndo widget are:
$filename into the text widget. Load()
delete the previous contents of the text widget as well as it's
undo history of the previous file.
$otherfilename is not specified, the text widget contents
writes the file of $filename used in the last Load()
call. If no file was previously Load()'ed an error message
pops up. The default filename of the last Load() call
is not overwriten by $otherfilename.