nanome.api.ui.label module¶
-
class
Label(text=None)[source]¶ Bases:
nanome._internal.ui.models._Label,nanome.api.ui.ui_base.UIBaseRepresents a label that cannot be interacted with in a menu-
class
HorizAlignOptions¶ Bases:
enum.IntEnumHorizontal alignment modes for text.To be used with ui.Label().text_horizontal_align and ui.Button().horizontal_align-
Left= 0¶
-
Middle= 1¶
-
Right= 2¶
-
-
class
VertAlignOptions¶ Bases:
enum.IntEnumVertical alignment modes for text.To be used with ui.Label().text_vertical_align and ui.Button().vertical_align-
Bottom= 2¶
-
Middle= 1¶
-
Top= 0¶
-
-
text_color¶ - The color of the text on this label
Type: Color
-
text_horizontal_align¶ - The horizontal alignment of the text
Type: HorizAlignOptions
-
text_max_size¶ - The maximum font size the text will displayThis is the upper bound for auto sizing.
Type: float
-
text_min_size¶ - The minimum font size the text will displayThis is the lower bound for auto sizing.
Type: float
-
text_vertical_align¶ - The vertical alignment of the text
Type: VertAlignOptions
-
class