MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / clearstamp

Method clearstamp

Python/Turtle.py:3000–3013  ·  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) >>> turtle.cle

(self, stampid)

Source from the content-addressed store, hash-verified

2998 buf.buffer.insert((buf.ptr+1)%buf.bufsize, [None])
2999
3000 def clearstamp(self, stampid):
3001 """Delete stamp with given stampid
3002
3003 Argument:
3004 stampid - an integer, must be return value of previous stamp() call.
3005
3006 Example (for a Turtle instance named turtle):
3007 >>> turtle.color("blue")
3008 >>> astamp = turtle.stamp()
3009 >>> turtle.fd(50)
3010 >>> turtle.clearstamp(astamp)
3011 """
3012 self._clearstamp(stampid)
3013 self._update()
3014
3015 def clearstamps(self, n=None):
3016 """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