ui.textbutton
Function: ui.textbutton( | text, clicked=None, text_style='button_text', **properties) |
This creates a button that is labelled with some text. When the button is clicked or otherwise selected, the function supplied as the clicked argument is called. If it returns a value, that value is returned from ui.interact().
text - The text of this button.
clicked - A function that is called when this button is clicked.
text_style - The style that is used for button text.
role - The role this button undertakes. This can be the empty string, or "selected_".
Example
python: while True: ui.textbutton("Continue", clicked=ui.returns(("done", True)), xminimum=250) type, value = ui.interact() if type == "done": break