pyface.i_image_cache module
The interface for an image cache.
-
class pyface.i_image_cache.IImageCache(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]
Bases: Interface
The interface for an image cache.
-
get_image(filename)[source]
Returns the scaled image specified.
- Parameters
filename (str) – The name of the file containing the image.
- Returns
scaled – The image referred to in the file, scaled to the cache’s width
and height.
- Return type
toolkit image
-
get_bitmap(filename)[source]
Returns the scaled image specified as a bitmap.
- Parameters
filename (str) – The name of the file containing the image.
- Returns
scaled – The image referred to in the file, scaled to the cache’s width
and height, as a bitmap.
- Return type
toolkit bitmap
-
class pyface.i_image_cache.MImageCache[source]
Bases: HasTraits
The mixin class that contains common code for toolkit specific
implementations of the IImageCache interface.