Image View#

Availability (Key)#

macOS

GTK

Windows

iOS

Android

Web

The Image View is a container for an image to be rendered on the display

Usage#

import toga

view = toga.ImageView(id='view1', image=my_image)

Reference#

class toga.widgets.imageview.ImageView(image=None, id=None, style=None, factory=None)#
Parameters:
  • image (Image) – The image to display.

  • id (str) – An identifier for this widget.

  • style (Style) –

Todo

  • Finish implementation.

Create a base Toga widget.

This is an abstract base class; it cannot be instantiated.

Parameters:
  • id – The ID for the widget.

  • style – A style object. If no style is provided, a default style will be applied to the widget.

property image#