bootstack.ask_string#
- bootstack.ask_string(prompt, *, title='', value=None, value_format=None, parent=None)#
Show a text-input dialog.
- Parameters:
prompt (str) – Prompt text displayed above the input field.
title (str) – Dialog window title.
value (str | None) – Pre-filled initial value.
value_format (str | None) – ICU format pattern for parsing and displaying the value (e.g. a phone mask or postal code pattern). See Format specs.
parent (Any) – Parent widget. Defaults to the active root window.
- Returns:
The entered string, or
Noneif canceled.- Return type:
str | None