resource Package

resource Package

Support for managing resources such as images and sounds. Part of the TraitsGUI project of the Enthought Tool Suite.

api Module

resource_factory Module

Default base-class for resource factories.

class pyface.resource.resource_factory.ResourceFactory

Default base-class for resource factories.

image_from_data(data)

Creates an image from the specified data.

image_from_file(filename)

Creates an image from the data in the specified filename.

resource_manager Module

resource_path Module

Functions to determine resource locations from the call stack.

This type of resource location is normally requested from the constructor for an object whose resources are relative to the module constructing the object.

pyface.resource.resource_path.resource_module(level=2)

Return a module reference calculated from the caller’s stack.

Note that what we want is the reference to the package containing the module in the stack. This is because we need a directory to search for our default resource sub-dirs as children.

pyface.resource.resource_path.resource_path(level=2)

Return a resource path calculated from the caller’s stack.

resource_reference Module

Table Of Contents

Previous topic

qt Package

Next topic

sizers Package

This Page