Skip to main content

Image Display

info

This widget is deprecated. Use the Image Display widget instead.

Show an image to the user

Examples

Basic Example

The following example demonstrate some of the available functionality for display_image

from abstra.forms import display_image

display_image(
"https://cdn.pixabay.com/photo/2019/02/25/19/22/cakes-4020342_1280.jpg",
subtitle="Happy Birthday!",
)

Parameters

NameDescriptionType
imageThe image to display to the userUnion[str, io.IOBase]
subtitleThe subtitle of the image. Defaults to "".str
labelThe label to display to the userstr
end_programWhether the program should end after the widget is shown. Defaults to False.bool
full_widthWhether the input should use full screen width. Defaults to False.bool
button_textWhat text to display on the button when the widget is not part of a Page. Defaults to 'Next'.str