MCPcopy Index your code
hub / github.com/python/cpython / filling

Method filling

Lib/turtle.py:3414–3426  ·  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

3412 self.currentLine = [self._position]
3413
3414 def filling(self):
3415 """Return fillstate (True if filling, False else).
3416
3417 No argument.
3418
3419 Example (for a Turtle instance named turtle):
3420 >>> turtle.begin_fill()
3421 >>> if turtle.filling():
3422 ... turtle.pensize(5)
3423 ... else:
3424 ... turtle.pensize(3)
3425 """
3426 return isinstance(self._fillpath, list)
3427
3428 @contextmanager
3429 def fill(self):

Callers 7

teleportMethod · 0.95
begin_fillMethod · 0.95
end_fillMethod · 0.95
test_begin_end_fillMethod · 0.80
test_fillMethod · 0.80

Calls

no outgoing calls

Tested by 4

test_begin_end_fillMethod · 0.64
test_fillMethod · 0.64