traitsui.editors.color_editor module

Defines the color editor factory for the all traits toolkit backends.

traitsui.editors.color_editor.ColorEditor(*args, **traits)[source]

Returns an instance of the toolkit-specific editor factory declared in traitsui.<toolkit>.color_editor. If such an editor factory cannot be located, an instance of the abstract ToolkitEditorFactory declared in traitsui.editors.color_editor is returned.

Parameters:
  • *args – arguments and keywords to be passed on to the editor factory’s constructor.

  • **traits – arguments and keywords to be passed on to the editor factory’s constructor.

class traitsui.editors.color_editor.ToolkitEditorFactory(*args, **traits)[source]

Bases: EditorFactory

Editor factory for color editors.

mapped = Bool(True)

Is the underlying color trait mapped?

use_native_dialog = Bool(True)

Do we use a native dialog for the popup or the toolkit’s? At present, only affects Qt.