Low-level wrapper around the Tk edit widget command that controls the undo/redo mechanism and the modified flag; args is the edit subcommand and its arguments. The edit_*() methods below are thin wrappers around it and are usually more convenient.
tkinter/Text.edit
Text.edit