edifice.Label

class edifice.Label(text='', selectable=False, editable=False, word_wrap=True, **kwargs)[source]

Bases: edifice.base_components.QtWidgetComponent

Basic widget for displaying text.

../_images/label.png

Three different label objects. You can embed HTML in labels to get rich text formatting.

Parameters
  • text (Any) – the text to display. Can be any Python type; the text prop is converted to a string using str before being displayed

  • word_wrap (bool) – enable/disable word wrapping.

  • selectable (bool) – whether the content of the label can be selected. Defaults to False.

  • editable (bool) – whether the content of the label can be edited. Defaults to False.

Methods

Attributes

children

The children of this component.

props

The props of this component.