traitsui.view_element module¶
Defines the abstract ViewElement class that all trait view template items (i.e., View, Group, Item, Include) derive from.
-
class
traitsui.view_element.
DefaultViewElement
¶ Bases:
traitsui.view_element.ViewElement
A view element that can be used as a default value for traits whose value is a view element.
-
class
traitsui.view_element.
ViewElement
¶ Bases:
traits.has_traits.HasPrivateTraits
An element of a view.
-
is_includable
()¶ Returns whether the object is replacable by an Include object.
-
replace_include
(view_elements)¶ Searches the current object’s content attribute for objects that have an id attribute, and replaces each one with an Include object with the same id value, and puts the replaced object into the specified ViewElements object.
Parameters: view_elements (ViewElements object) – Object containing Group, Item, and Include objects
-
-
class
traitsui.view_element.
ViewSubElement
¶ Bases:
traitsui.view_element.ViewElement
Abstract class representing elements that can be contained in a view.