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

Method filling

Python/Turtle.py:3195–3207  ·  view source on GitHub ↗

Return fillstate (True if filling, False else). No argument. Example (for a Turtle instance named turtle): >>> turtle.begin_fill() >>> if turtle.filling(): ... turtle.pensize(5) ... else: ... turtle.pensize(3)

(self)

Source from the content-addressed store, hash-verified

3193 self.currentLine = [self._position]
3194
3195 def filling(self):
3196 """Return fillstate (True if filling, False else).
3197
3198 No argument.
3199
3200 Example (for a Turtle instance named turtle):
3201 >>> turtle.begin_fill()
3202 >>> if turtle.filling():
3203 ... turtle.pensize(5)
3204 ... else:
3205 ... turtle.pensize(3)
3206 """
3207 return isinstance(self._fillpath, list)
3208
3209 def begin_fill(self):
3210 """Called just before drawing a shape to be filled.

Callers 2

begin_fillMethod · 0.95
end_fillMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected