Some widgets support undo actions. See reference class method can_undo as well.
can_undo
S3 method.
undo(obj, ...) ## S3 method for class 'GComponent' undo(obj, ...)
obj
object to call undo on
...
ignored