traitsui.editors.image_editor module¶
Traits UI ‘display only’ image editor.
- class traitsui.editors.image_editor.ImageEditor(*args, **traits)[source]¶
Bases:
BasicEditorFactory
- allow_clipping = Bool()¶
Whether or not to allow the image to be clipped when not scaling
- allow_upscaling = Bool()¶
Whether or not to scale the image larger than the original when scaling
- image = Image¶
The optional image resource to be displayed by the editor (if not specified, the editor’s object value is used as the ImageResource to display):
- klass = Property()¶
The editor class to be created:
- preserve_aspect_ratio = Bool()¶
Whether or not to preserve the aspect ratio when scaling
- scale = Bool()¶
Whether or not to scale the image to fit the available space