ui.text
Function: ui.text( | label, **properties) |
This creates a widget displaying a text label.
label - The text that will be displayed on the screen. It uses font properties. The label can also be a list containing both text strings in widgets, in the case of a widget, the widget is displayed as if it was text of the enclosing font. The height of the area allocated is that of the font, with the width being taked from a render of the widget.
slow - If True, text is displayed slowly, controlled by the appropriate preference.
slow_speed - If slow is True, then this is the number of cps the text is displayed at, overriding the preference.
slow_done - If not None and slow is True, this is a callback that is called when we're done displaying text on the screen.
Example
python: # Single-child widget, contains the following ui.vbox ui.window() # Multiple-child widget - all new widgets following this will be # added as children to it, until the next ui.close ui.vbox() ui.text("To get to the next screen, click the 'Continue' button.") ui.close()