traitsui.editors.rgb_color_editor module¶
Defines a subclass of the base color editor factory, for colors that are represented as tuples of the form ( red, green, blue ), where red, green and blue are floats in the range from 0.0 to 1.0.
- traitsui.editors.rgb_color_editor.RGBColorEditor(*args, **traits)[source]¶
Returns an instance of the toolkit-specific editor factory declared in traitsui.<toolkit>.rgb_color_editor. If such an editor factory cannot be located, an instance of the abstract ToolkitEditorFactory declared in traitsui.editors.rgb_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.rgb_color_editor.ToolkitEditorFactory(*args, **traits)[source]¶
Bases:
ToolkitEditorFactory
Factory for editors for RGB colors.