ImageView¶
- class pyto_ui.ImageView(image: Image = None, symbol_name: str = None, url: str = None)¶
A view displaying an image.
- Parameters:
image – A PIL image.
symbol_name – An SF symbol name. See sf_symbols
url – The URL of an image to load it remotely.
- property image: Image¶
The image displayed on screen. Can be a
PILimage or anUIKitUIImage. Seeimage_with_system_name()for more information about how to get a symbol image.- Return type:
Image.Image
- load_from_url(url)¶
Loads and display the image at given url.
- Parameters:
url – The URL of the image.