yr.buttons
buttons(
options: list[str],
label: str | None = None,
) → strPresent the user with a set of buttons and return their selection.
Parameters
options
type: list[str]
Labels for the buttons to display.
label
type: str | None = None
Optional prompt shown above the buttons.
Returns
type: str
The label of the button the user clicked.