nanome.api.ui.label module

class Label(text=None)[source]

Bases: nanome._internal.ui.models._Label, nanome.api.ui.ui_base.UIBase

Represents a label that cannot be interacted with in a menu
class HorizAlignOptions

Bases: enum.IntEnum

Horizontal 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.IntEnum

Vertical 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_auto_size
Whether or not to automatically size the label text
Type:bool
text_bold
Whether or not the text on this label is bold
Type:bool
text_color
The color of the text on this label
Type:Color
text_horizontal_align
The horizontal alignment of the text
Type:HorizAlignOptions
text_italic
Whether or not the text on this label is italic
Type:bool
text_max_size
The maximum font size the text will display
This is the upper bound for auto sizing.
Type:float
text_min_size
The minimum font size the text will display
This is the lower bound for auto sizing.
Type:float
text_size
The font size of the text displayed on this label
Type:float
text_underlined
Whether or not the text on this label is underlined
Type:bool
text_value
The text to be displayed on the label
Type:str
text_vertical_align
The vertical alignment of the text
Type:VertAlignOptions