Image Display
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
Name | Description | Type |
---|---|---|
image | The image to display to the user | Union[str, io.IOBase] |
subtitle | The subtitle of the image. Defaults to "". | str |
label | The label to display to the user | str |
end_program | Whether the program should end after the widget is shown. Defaults to False. | bool |
full_width | Whether the input should use full screen width. Defaults to False. | bool |
button_text | What text to display on the button when the widget is not part of a Page. Defaults to 'Next'. | str |