turtle.write()

turtle.write(arg, move=False, align="left", font=("Arial", 8, "normal"))

Parameters:
  • arg – object to be written to the TurtleScreen
  • move – True/False
  • align – one of the strings “left”, “center” or right”
  • font – a triple (fontname, fontsize, fonttype)

Write text - the string representation of arg - at the current turtle position according to align (“left”, “center” or right”) and with the given font. If move is true, the pen is moved to the bottom-right corner of the text. By default, move is False.

>>> turtle.write("Home = ", True, align="center")
>>> turtle.write((0,0), True)
doc_python
2016-10-07 17:45:47
Comments
Leave a Comment

Please login to continue.