label.py 274 B

12345678910111213
  1. from .mixins.text_element import TextElement
  2. class Label(TextElement):
  3. def __init__(self, text: str = '') -> None:
  4. """Label
  5. Displays some text.
  6. :param text: the content of the label
  7. """
  8. super().__init__(tag='div', text=text)