Prompt the user to enter a value of the desired type and return it, or None if the dialog is cancelled.
tkinter.simpledialog/askfloat
askfloat