enable.component_editor module

Defines a Traits editor for displaying an Enable component.

class enable.component_editor.ComponentEditor(*args, **traits)[source]

Bases: traitsui.basic_editor_factory.BasicEditorFactory

TraitsUI editor factory for Enable components.

bgcolor = ColorTrait("sys_window")

The background color for the window

height = Property

Convenience function for accessing the width

high_resolution = Bool(True)

When available, use HiDPI for GraphicsContext rasterization.

size = Tuple((400, 400))

The default size of the Window wrapping this Enable component

width = Property

Convenience function for accessing the width