qiBuild documentation

qisys.interact – Interacting with the user

Small set of tools to interact with the user

qisys.interact.read_input()

Read input from the user

qisys.interact.ask_choice(choices, input_text, return_int=False)

Ask the user to choose from a list of choices

qisys.interact.ask_yes_no(question, default=False)

Ask the user to answer by yes or no

qisys.interact.ask_string(question, default=None)

Ask the user to enter something. Returns what the user entered

qisys.interact.ask_program(message)

Ask the user to enter a path to a program. Look for it in PATH. If not found, ask the user to enter the full path. If still not found, give up ...

qisys.interact.ask_app(message)

Ask the use to enter path to a .app

qisys.interact.get_editor()

Find the editor searching the environment, lastly ask the user. Returns the editor.