Inherits from
- CoordinateBox: enthought.enable.coordinate_box.CoordinateBox
- AbstractComponent: abstract_component.AbstractComponent
Attributes
- hpadding
Readonly property expressing the total amount of horizontal padding
hpadding = Property
- outer_bounds
The number of horizontal and vertical pixels in the padding outer box. Setting these bounds will modify the bounds of the component, but will not change the lower-left position (self.outer_position) or the padding. This returns a tuple because modifying the returned value has no effect. To modify outer_bounds element-wise, use set_outer_bounds().
outer_bounds = Property
- outer_height
outer_height = Property
- outer_position
The x,y point of the lower left corner of the padding outer box around the component. Setting this position will move the component, but will not change the padding or bounds. This returns a tuple because modifying the returned value has no effect. To modify outer_position element-wise, use set_outer_position().
outer_position = Property
- outer_width
outer_width = Property
- outer_x
outer_x = Property
- outer_x2
outer_x2 = Property
- outer_y
outer_y = Property
- outer_y2
outer_y2 = Property
- padding
This property allows a way to set the padding in bulk. It can either be set to a single Int (which sets padding on all sides) or a tuple/list of 4 Ints representing the left, right, top, bottom padding amounts. When it is read, this property always returns the padding as a list of 4 elements, even if they are all the same.
padding = Property
- padding_accepts_focus
Does the component respond to mouse events occurring over the padding area?
padding_accepts_focus = Bool(True)
- padding_bottom
The amount of space to put below the component
padding_bottom = Int(0)
- padding_left
The amount of space to put on the left side of the component
padding_left = Int(0)
- padding_right
The amount of space to put on the right side of the component
padding_right = Int(0)
- padding_top
The amount of space to put on top of the component
padding_top = Int(0)
- vpadding
Readonly property expressing the total amount of vertical padding
vpadding = Property
Inherited from base classes
Method summary
- cleanup(self, window)
- is_in(self, x, y)
- set_outer_bounds(self, ndx, val)
- set_outer_position(self, ndx, val)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- 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)
- has_traits_interface(self, *interfaces)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- 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_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- 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
- cleanup(self, window)
When a window viewing or containing a component is destroyed, cleanup is called on the component to give it the opportunity to delete any transient state it may have (such as backbuffers).
- is_in(self, x, y)
- set_outer_bounds(self, ndx, val)
Since self.outer_bounds is a property whose value is determined by other (primary) attributes, it cannot return a mutable type. This method allows generic (i.e. orientation-independent) code to set the value of self.outer_bounds[0] or self.outer_bounds[1].
- set_outer_position(self, ndx, val)
Since self.outer_position is a property whose value is determined by other (primary) attributes, it cannot return a mutable type. This method allows generic (i.e. orientation-independent) code to set the value of self.outer_position[0] or self.outer_position[1].