tooltip.py 324 B

12345678910111213
  1. from .text_element import TextElement
  2. class Tooltip(TextElement):
  3. def __init__(self, text: str = '') -> None:
  4. """Tooltip
  5. Can be placed in another element to show additional information on hover.
  6. :param text: the content of the tooltip
  7. """
  8. super().__init__('q-tooltip', text)