carputils
Doxygen code documentation for the python framework controlling openCARP
|
User query functions. More...
Functions | |
def | query_yes_no (question, default="yes") |
Ask a yes/no question via raw_input() and return the answer. More... | |
def | query_folder (question, default="append") |
Process the output of asking a questions. More... | |
User query functions.
def carputils.prompt.query_folder | ( | question, | |
default = "append" |
|||
) |
Process the output of asking a questions.
question str Question to be presented to the user default str or None The default answer if the user just hits <Enter>. It must be "yes" (the default), "no" or None (meaning an answer is required from the user).
bool The answer to the query
def carputils.prompt.query_yes_no | ( | question, | |
default = "yes" |
|||
) |
Ask a yes/no question via raw_input() and return the answer.
question str Question to be presented to the user default str or None The default answer if the user just hits <Enter>. It must be "yes" (the default), "no" or None (meaning an answer is required from the user).
bool The answer to the query