prompt method

prompt

Displays a modal text field prompt with the given message, waits for the user to dismiss it, and returns the value that the user entered. If the user cancels the prompt, then returns null instead. If the second argument is present, then the given value is used as a default.

Returns

Returns the value that the user entered

def prompt(self, message, default):
    ...
ParameterTypeDescription
messagestrThe message.
defaultstrThe default.

See Also