turtle.RawTurtle.undo¶
-
RawTurtle.
undo
()[source]¶ undo (repeatedly) the last turtle action.
No argument.
undo (repeatedly) the last turtle action. Number of available undo actions is determined by the size of the undobuffer.
Example (for a Turtle instance named turtle): >>> for i in range(4): ... turtle.fd(50); turtle.lt(80) ... >>> for i in range(8): ... turtle.undo() ...