edifice.Image

class edifice.Image(src='', scale_to_fit=True, **kwargs)[source]

Bases: edifice.base_components.QtWidgetComponent

An image container.

Parameters
  • src (Any) – either the path to the image, or an np array. The np array must be 3 dimensional (height, width, channels)

  • scale_to_fit (bool) – if True, the image will be scaled to fit inside the container.

Methods

Attributes

children

The children of this component.

props

The props of this component.