MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _write

Method _write

tools/python-3.11.9-amd64/Lib/turtle.py:3416–3425  ·  view source on GitHub ↗

Performs the writing for write()

(self, txt, align, font)

Source from the content-addressed store, hash-verified

3414 self.undobuffer.cumulate = False
3415
3416 def _write(self, txt, align, font):
3417 """Performs the writing for write()
3418 """
3419 item, end = self.screen._write(self._position, txt, align, font,
3420 self._pencolor)
3421 self._update()
3422 self.items.append(item)
3423 if self.undobuffer:
3424 self.undobuffer.push(("wri", item))
3425 return end
3426
3427 def write(self, arg, move=False, align="left", font=("Arial", 8, "normal")):
3428 """Write text at the current turtle position.

Callers 2

writeMethod · 0.95
writeMethod · 0.45

Calls 3

_updateMethod · 0.95
appendMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected