PyDocs

Nav

Graphical user interfaces with Tk

numinput

turtle

function
  • numinput(title, prompt, default=None, minval=None, maxval=None)
Pop up a dialog window for input of a number. title is the title of the dialog window and prompt is a text describing what numerical information to input. default is the default value, minval and maxval are the minimum and maximum values for input. If these are given, the number entered must be between minval and maxval. If not, a hint is issued and the dialog remains open for correction. Return the number entered. If the dialog is canceled, return None.
1 Example
>>> screen.numinput("Poker", "Your stakes:", 1000, minval=10, maxval=10000)
from the Python docs
See Also
No see-alsos for turtle/numinput
0 Notes
No notes for numinput