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

Method _write

Python/Turtle.py:3298–3306  ·  view source on GitHub ↗

Performs the writing for write()

(self, txt, align, font)

Source from the content-addressed store, hash-verified

3296 self.undobuffer.cumulate = False
3297
3298 def _write(self, txt, align, font):
3299 """Performs the writing for write()
3300 """
3301 item, end = self.screen._write(self._position, txt, align, font,
3302 self._pencolor)
3303 self.items.append(item)
3304 if self.undobuffer:
3305 self.undobuffer.push(("wri", item))
3306 return end
3307
3308 def write(self, arg, move=False, align="left", font=("Arial", 8, "normal")):
3309 """Write text at the current turtle position.

Callers 1

writeMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected