Inherits from
- Component: enthought.enable2.component.Component
Attributes
- bg_color
bg_color = LabelTraitDelegate
- border_color
border_color = LabelTraitDelegate
- border_size
border_size = LayoutLabelTraitDelegate
- color
color = LabelTraitDelegate
- colorchip_map
colorchip_map = { Const('fg_color') : Const('color'), Const('bg_color') : Const('bg_color'), Const('shadow_color') : Const('shadow_color'), Const('alt_color') : Const('border_color') } - delegate
delegate = Trait(default_label_traits)
- enabled
enabled = LabelTraitDelegate
- font
font = LabelContentDelegate
- image
image = LayoutLabelTraitDelegate
- image_orientation
image_orientation = LayoutLabelTraitDelegate
- image_position
image_position = LayoutLabelTraitDelegate
- margin_bottom
margin_bottom = LayoutLabelTraitDelegate
- margin_left
margin_left = LayoutLabelTraitDelegate
- margin_right
margin_right = LayoutLabelTraitDelegate
- margin_top
margin_top = LayoutLabelTraitDelegate
- padding_bottom
padding_bottom = LayoutLabelTraitDelegate
- padding_left
padding_left = LayoutLabelTraitDelegate
- padding_right
padding_right = LayoutLabelTraitDelegate
- padding_top
padding_top = LayoutLabelTraitDelegate
- selected
selected = LabelTraitDelegate
- shadow_color
shadow_color = LabelTraitDelegate
- spacing_height
spacing_height = LayoutLabelTraitDelegate
- spacing_width
spacing_width = LayoutLabelTraitDelegate
- style
style = LabelTraitDelegate
- text
text = LabelContentDelegate
- text_position
text_position = LayoutLabelTraitDelegate
- traits_view
traits_view = View(Group('<component>', 'enabled', 'selected', id = 'component'), Group('<links>', 'delegate', id = 'links'), Group('text', ' ', 'font', ' ', 'color', ' ', 'shadow_color', ' ', 'style', id = 'text', style = 'custom'), Group('bg_color{Background Color}', '_', 'border_color', '_', 'border_size', id = 'border', style = 'custom'), Group('text_position', '_', 'image_position', '_', 'image_orientation', ' ', 'image', id = 'position', style = 'custom'), Group('spacing_height', 'spacing_width', '_', 'padding_left', 'padding_right', 'padding_top', 'padding_bottom', '_', 'margin_left', 'margin_right', 'margin_top', 'margin_bottom', id = 'margin'))
Inherited from base classes
Method summary
- __getstate__(self)
- __init__(self, text = '', **traits)
- __setstate__(self, state)
- layout(self)
- update_text(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __prefix_trait__(self, name)
- __reduce_ex__(self, protocol)
- 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)
- as_coordinates(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)
- dispatch(self, event, suffix)
- 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
- __getstate__(self)
- __init__(self, text = '', **traits)
- __setstate__(self, state)
- layout(self)
- update_text(self)