MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / clearstamp

Method clearstamp

tools/python-3.11.9-amd64/Lib/turtle.py:3118–3131  ·  view source on GitHub ↗

Delete stamp with given stampid Argument: stampid - an integer, must be return value of previous stamp() call. Example (for a Turtle instance named turtle): >>> turtle.color("blue") >>> astamp = turtle.stamp() >>> turtle.fd(50) >>> t

(self, stampid)

Source from the content-addressed store, hash-verified

3116 buf.buffer.insert((buf.ptr+1)%buf.bufsize, [None])
3117
3118 def clearstamp(self, stampid):
3119 """Delete stamp with given stampid
3120
3121 Argument:
3122 stampid - an integer, must be return value of previous stamp() call.
3123
3124 Example (for a Turtle instance named turtle):
3125 >>> turtle.color("blue")
3126 >>> astamp = turtle.stamp()
3127 >>> turtle.fd(50)
3128 >>> turtle.clearstamp(astamp)
3129 """
3130 self._clearstamp(stampid)
3131 self._update()
3132
3133 def clearstamps(self, n=None):
3134 """Delete all or first/last n of turtle's stamps.

Callers 1

_undoMethod · 0.95

Calls 2

_clearstampMethod · 0.95
_updateMethod · 0.95

Tested by

no test coverage detected