Inherits from
- HasPrivateTraits: enthought.traits.has_traits.HasPrivateTraits
Attributes
- add
Add a row:
add = Instance(Action, { Const('name') : Const('Add'), Const('tooltip') : Const('Insert new item'), Const('action') : Const('on_add'), Const('image') : CallFunc(Name('ImageResource'), [Const('table_add.png')], None, None) })
- control
The toolbar control:
control = Any
- delete
Delete selected row:
delete = Instance(Action, { Const('name') : Const('Delete'), Const('tooltip') : Const('Delete current item'), Const('action') : Const('on_delete'), Const('enabled') : Name('False'), Const('image') : CallFunc(Name('ImageResource'), [Const('table_delete.png')], None, None) })
- editor
The table editor that this is the toolbar for:
editor = Instance(TableEditor)
- move_down
Move current object down one row:
move_down = Instance(Action, { Const('name') : Const('Move Down'), Const('tooltip') : Const('Move current item down one row'), Const('action') : Const('on_move_down'), Const('enabled') : Name('False'), Const('image') : CallFunc(Name('ImageResource'), [Const('table_move_down.png')], None, None) })
- move_up
Move current object up one row:
move_up = Instance(Action, { Const('name') : Const('Move Up'), Const('tooltip') : Const('Move current item up one row'), Const('action') : Const('on_move_up'), Const('enabled') : Name('False'), Const('image') : CallFunc(Name('ImageResource'), [Const('table_move_up.png')], None, None) })
- no_sort
Do not sort columns:
no_sort = Instance(Action, { Const('name') : Const('No Sorting'), Const('tooltip') : Const('Do not sort columns'), Const('action') : Const('on_no_sort'), Const('enabled') : Name('False'), Const('image') : CallFunc(Name('ImageResource'), [Const('table_no_sort.png')], None, None) })
- prefs
Edit the user preferences:
prefs = Instance(Action, { Const('name') : Const('Preferences'), Const('tooltip') : Const('Set user preferences for table'), Const('action') : Const('on_prefs'), Const('image') : CallFunc(Name('ImageResource'), [Const('table_prefs.png')], None, None) })
- search
Search the table:
search = Instance(Action, { Const('name') : Const('Search'), Const('tooltip') : Const('Search table'), Const('action') : Const('on_search'), Const('image') : CallFunc(Name('ImageResource'), [Const('table_search.png')], None, None) })
Inherited from base classes
Method summary
- __init__(self, parent = None, **traits)
- add_to_menu(self, menu_item)
- add_to_toolbar(self, toolbar_item)
- can_add_to_menu(self, action)
- can_add_to_toolbar(self, action)
- perform(self, action, action_event = None)
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
- __init__(self, parent = None, **traits)
- add_to_toolbar(self, toolbar_item)
Adds a toolbar item to the too bar being constructed.
- can_add_to_toolbar(self, action)
Returns whether the toolbar action should be defined in the user interface.
- perform(self, action, action_event = None)
Performs the action described by a specified Action object.