Bases: enaml.widgets.control.Control
A widget which can display an Image with optional scaling.
The source url of the image to load.
Whether or not to scale the image with the size of the component.
Whether to allow upscaling of an image if scale_to_fit is True.
Whether or not to preserve the aspect ratio if scaling the image.
An image view hugs its width weakly by default.
An image view hugs its height weakly by default.
A method called after initialization which allows the widget to bind any event handlers necessary.
alias of __NoInterface__
Bases: enaml.qt.qt_control.QtControl
A Qt implementation of an Enaml ImageView widget.
Activate the image view.
This method will request the initial image source for the widget.
Handle the ‘set_scale_to_fit’ action from the Enaml widget.
Handle the ‘set_allow_upscaling’ action from the Enaml widget.
Handle the ‘set_preserve_aspect_ratio’ action from the Enaml widget
Sets whether or not the image scales with the underlying control.
Sets whether or not the image will scale beyond its natural size.