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

Method _write

Lib/turtle.py:3529–3538  ·  view source on GitHub ↗

Performs the writing for write()

(self, txt, align, font)

Source from the content-addressed store, hash-verified

3527 self.undobuffer.cumulate = False
3528
3529 def _write(self, txt, align, font):
3530 """Performs the writing for write()
3531 """
3532 item, end = self.screen._write(self._position, txt, align, font,
3533 self._pencolor)
3534 self._update()
3535 self.items.append(item)
3536 if self.undobuffer:
3537 self.undobuffer.push(("wri", item))
3538 return end
3539
3540 def write(self, arg, move=False, align="left", font=("Arial", 8, "normal")):
3541 """Write text at the current turtle position.

Callers 1

writeMethod · 0.95

Calls 3

_updateMethod · 0.95
appendMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected