pyface.viewer.content_provider module

Abstract base class for content providers.

class pyface.viewer.content_provider.ContentProvider[source]

Bases: HasTraits

Abstract base class for content providers.

get_elements(element)[source]

Returns a list of the elements to display in a viewer.

Returns a list of elements to display in a viewer when its (ie. the viewer’s) input is set to the given element.

The returned list should not be modified by the viewer.