traitsui.editor_factory module¶
Defines the abstract EditorFactory class, which represents a factory for creating the Editor objects used in a Traits-based user interface.
-
class
traitsui.editor_factory.
EditorFactory
(*args, **traits)¶ Bases:
traits.has_traits.HasPrivateTraits
Represents a factory for creating the Editor objects in a Traits-based user interface.
-
custom_editor
(ui, object, name, description, parent)¶ Generates an editor using the “custom” style.
-
init
()¶ Performs any initialization needed after all constructor traits have been set.
-
named_value
(name, ui)¶ Returns the value of a specified extended name of the form: name or context_object_name.name[.name…]:
-
readonly_editor
(ui, object, name, description, parent)¶ Generates an “editor” that is read-only.
-
simple_editor
(ui, object, name, description, parent)¶ Generates an editor using the “simple” style.
-
text_editor
(ui, object, name, description, parent)¶ Generates an editor using the “text” style.
-
-
class
traitsui.editor_factory.
EditorWithListFactory
(*args, **traits)¶ Bases:
traitsui.editor_factory.EditorFactory
Base class for factories of editors for objects that contain lists.