pyface.i_image_resource module¶
The interface for an image resource.
- class pyface.i_image_resource.IImageResource(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]¶
Bases:
IImage
The interface for an image resource.
An image resource describes the location of an image and provides a way to create a toolkit-specific image on demand.
- absolute_path = Str()¶
The absolute path to the image.
- name = Str()¶
The name of the image.
- search_path = List()¶
A list of directories, classes or instances that will be used to search for the image (see the resource manager for more details).
- class pyface.i_image_resource.MImageResource(name, search_path=None)[source]¶
Bases:
HasTraits
The mixin class that contains common code for toolkit specific implementations of the IImageResource interface.
Implements: __init__(), create_image()