image.py 335 B

1234567891011121314
  1. from .mixins.source_element import SourceElement
  2. class Image(SourceElement):
  3. def __init__(self, source: str = '') -> None:
  4. """Image
  5. Displays an image.
  6. :param source: the source of the image; can be a URL or a base64 string
  7. """
  8. super().__init__('q-img')
  9. self.init_source(source)