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)
| 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): |
no outgoing calls