Inherits from
- MouseHandler: enthought.enable.events.MouseHandler
Attributes
- accepts_focus
accepts_focus = Bool(False, desc = 'whether the component accepts keyboard focus')
- bottom
bottom = Property(__bottom_get)
- bounds
bounds = Trait(bounds_trait, desc = 'the location and size of the component')
- colorchip_map
colorchip_map = { } - container
container = Trait(default_container, BaseContainer, desc = 'the object containing this object')
- cursor_color
cursor_color = Trait(red_color_trait, desc = 'the color of the cursor drawn over the component')
- cursor_style
cursor_style = Trait(cursor_style_trait, desc = 'the style of cursor drawn over the component')
- drag_enter
drag_enter = drag_event_trait
- drag_leave
drag_leave = drag_event_trait
- drag_over
drag_over = drag_event_trait
- dragged
dragged = drag_event_trait
- dropped
dropped = drag_event_trait
- dropped_on
dropped_on = drag_event_trait
- event_state
event_state = Trait('normal', desc = 'the current component event state')
- has_focus
has_focus = simple_event_trait
- height
height = Property(__height_get, __height_set)
- key
key = key_event_trait
- left
left = Property(__left_get)
- max_height
max_height = ComponentMaxSize(desc = 'the maximum height of the component (in pixels)')
- max_width
max_width = ComponentMaxSize(desc = 'the maximum width of the component (in pixels)')
- min_height
min_height = ComponentMinSize(desc = 'the minimum height of the component (in pixels)')
- min_width
min_width = ComponentMinSize(desc = 'the minimum width of the component (in pixels)')
- pointer
pointer = simple_delegate
- pre_dropped_on
Events:
pre_dropped_on = drag_event_trait
- resized
resized = simple_event_trait
- right
right = Property(__right_get)
- stretch_height
stretch_height = Stretch(desc = 'the relative vertical stretchiness of the component')
- stretch_width
stretch_width = Stretch(desc = 'the relative horizontal stretchiness of the component')
- timer
timer = simple_event_trait
- timer_interval
timer_interval = TimeInterval(desc = 'the interval between timer events (in seconds)')
- tooltip
tooltip = Str(desc = 'the text to display when the pointer hovers over the component')
- top
top = Property(__top_get)
- traits_view
traits_view = View(Group('x', 'y', 'width', 'height', '_', 'min_width', 'min_height', 'stretch_width', 'stretch_height', '_', 'visible', id = 'component'), Group('container', id = 'links', style = 'custom'))
- visible
visible = simple_delegate
- width
width = Property(__width_get, __width_set)
- window
window = simple_delegate
- x
Define 'x, y, width, height, left, right, bottom, top' properties:
x = Property(__x_get, __x_set)
- y
y = Property(__y_get, __y_set)
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
- __bottom_get(self)
- __height_get(self)
- __height_set(self, height)
- __init__(self, **traits)
- __left_get(self)
- __right_get(self)
- __top_get(self)
- __width_get(self)
- __width_set(self, width)
- __x_get(self)
- __x_set(self, x)
- __y_get(self)
- __y_set(self, y)
- components_at(self, x, y)
- dimensions(self, width = None, height = None)
- drag_enter_by_colorchip(self, colorchip, event)
- drag_leave_by_colorchip(self, colorchip, event)
- draw(self, gc)
- dropped_on_by_colorchip(self, colorchip, event)
- dropped_on_by_idroppedonhandler(self, component, event)
- gc_temp(self)
- image_for(self, image)
- location(self, x = None, y = None)
- needs_redraw(self)
- redraw(self, bounds = None)
- xy_in_bounds(self, x, y = None)
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
- __bottom_get(self)
- __height_get(self)
- __height_set(self, height)
- __init__(self, **traits)
- __left_get(self)
- __right_get(self)
- __top_get(self)
- __width_get(self)
- __width_set(self, width)
- __x_get(self)
- __x_set(self, x)
- __y_get(self)
- __y_set(self, y)
- components_at(self, x, y)
- dimensions(self, width = None, height = None)
- drag_enter_by_colorchip(self, colorchip, event)
- drag_leave_by_colorchip(self, colorchip, event)
- draw(self, gc)
- dropped_on_by_colorchip(self, colorchip, event)
- dropped_on_by_idroppedonhandler(self, component, event)
- gc_temp(self)
- image_for(self, image)
- location(self, x = None, y = None)
- needs_redraw(self)
- redraw(self, bounds = None)
- xy_in_bounds(self, x, y = None)