Return count of entries in the undobuffer. No argument. Example (for a Turtle instance named turtle): >>> while undobufferentries(): ... undo()
(self)
| 2500 | self.undobuffer = Tbuffer(size) |
| 2501 | |
| 2502 | def undobufferentries(self): |
| 2503 | """Return count of entries in the undobuffer. |
| 2504 | |
| 2505 | No argument. |
| 2506 | |
| 2507 | Example (for a Turtle instance named turtle): |
| 2508 | >>> while undobufferentries(): |
| 2509 | ... undo() |
| 2510 | """ |
| 2511 | if self.undobuffer is None: |
| 2512 | return 0 |
| 2513 | return self.undobuffer.nr_of_items() |
| 2514 | |
| 2515 | def _clear(self): |
| 2516 | """Delete all of pen's drawings""" |
nothing calls this directly
no test coverage detected