Closes current line item and starts a new one. Remark: if current line became too long, animation performance (via _drawline) slowed down considerably.
(self, usePos=True)
| 3396 | self._update() |
| 3397 | |
| 3398 | def _newLine(self, usePos=True): |
| 3399 | """Closes current line item and starts a new one. |
| 3400 | Remark: if current line became too long, animation |
| 3401 | performance (via _drawline) slowed down considerably. |
| 3402 | """ |
| 3403 | if len(self.currentLine) > 1: |
| 3404 | self.screen._drawline(self.currentLineItem, self.currentLine, |
| 3405 | self._pencolor, self._pensize) |
| 3406 | self.currentLineItem = self.screen._createline() |
| 3407 | self.items.append(self.currentLineItem) |
| 3408 | else: |
| 3409 | self.screen._drawline(self.currentLineItem, top=True) |
| 3410 | self.currentLine = [] |
| 3411 | if usePos: |
| 3412 | self.currentLine = [self._position] |
| 3413 | |
| 3414 | def filling(self): |
| 3415 | """Return fillstate (True if filling, False else). |
no test coverage detected