traitsui.view_elements module

Define the ViewElements class, which is used to define a (typically class-based) hierarchical name space of related ViewElement objects.

Normally there is a ViewElements object associated with each Traits-based class, which contains all of the ViewElement objects associated with the class. The ViewElements object is also linked to the ViewElements objects of its associated class’s parent classes.

class traitsui.view_elements.SearchStackItem

Bases: traits.has_traits.HasStrictTraits

class traitsui.view_elements.ViewElements

Bases: traits.has_traits.HasStrictTraits

Defines a hierarchical name space of related ViewElement objects.

filter_by(klass=None)

Returns a sorted list of all names accessible from the ViewElements object that are of a specified (ViewElement) type.

find(name, stack=None)

Finds a specified ViewElement within the specified (optional) search context.

Previous topic

traitsui.view_element module

Next topic

TraitsUI 6.1 Tutorials

This Page