Label¶
- class pyto_ui.Label(text: str = '')¶
A view displaying not editable and not selectable text.
- property adjusts_font_size_to_fit_width: bool¶
A boolean indicating whether the label adjusts its font size to fit its size.
- Return type:
bool
- property line_break_mode: LineBreakMode¶
The line break mode.
- Return type:
Line Break Mode
- load_html(html)¶
Loads HTML in the Label.
- Parameters:
html – The HTML code to load.
- property number_of_lines: int¶
The numbers of lines displayed in the label. Set to
0to show all the text.- Return type:
int
- property text: str¶
The text to be displayed on the view.
- Return type:
str
- property text_alignment: TextAlignment¶
The text’s alignment. For possible values, see
Text Alignmentconstants.- Return type:
Text Alignment