Inherits from
- Component: enthought.enable.component.Component
- BaseContainer: enthought.enable.base_container.BaseContainer
Attributes
- bounds
The location and size of the component (override of Component definition):
bounds = Property
- contact_manager
The contact manager for the component:
contact_manager = Instance(OMContactManager)
- contacts
List of all contacts associated with this component:
contacts = Property
- controller
The controller for the component:
controller = Instance('enthought.enable.om.OMComponentController')
- data
Component data (to help controller relate component back to object model):
data = Any
- inner_component
The 'inner component' for the component:
inner_component = Instance(Component)
- inner_component_position
Position of the inner component relative to the outer component:
inner_component_position = StyleDelegate
- links
List of all links connected to this component:
links = Property
- origin
Origin of the component relative to its containing canvas:
origin = OffsetXY
- outer_component
The 'outer component' for the component:
outer_component = Instance(OMOuterComponent)
- selected
Is the component selected?
selected = false
- selection_bg_color
Color used to draw the background of a selected component:
selection_bg_color = StyleDelegate
- selection_border_color
Color used to draw the border of a selected component:
selection_border_color = StyleDelegate
- size
Size of the component:
size = SizeXY
- style
The style to use for drawing the component:
style = Instance(OMComponentStyle, default_component_style)
- traits_view
traits_view = View([ 'outer_component@', '|{Component}<>' ], [ 'inner_component@', '|{Label}<>' ], title = 'Edit component properties', handler = om_handler)
Inherited from base classes
- left_dclick
- left_down
- left_up
- middle_dclick
- middle_down
- middle_up
- mouse_move
- mouse_wheel
- on_trait_event
- pre_left_dclick
- pre_left_down
- pre_left_up
- pre_middle_dclick
- pre_middle_down
- pre_middle_up
- pre_mouse_move
- pre_mouse_wheel
- pre_right_dclick
- pre_right_down
- pre_right_up
- pre_window_enter
- pre_window_leave
- right_dclick
- right_down
- right_up
- trait_added
- trait_modified
- window_enter
- window_leave
- wrappers
Method summary
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name)
- __reduce_ex__(self, protocol)
- __setstate__(self, state)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- get(self, *names, **metadata)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same')
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set(self, trait_change_notify = True, **traits)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- drag(self, event)
- edit(self)
- update(self, layout = False)