turtle.textinput()

turtle.textinput(title, prompt)

Parameters:
  • title – string
  • prompt – string

Pop up a dialog window for input of a string. Parameter title is the title of the dialog window, propmt is a text mostly describing what information to input. Return the string input. If the dialog is canceled, return None.

>>> screen.textinput("NIM", "Name of first player:")
doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.