Inherits from
- ActionManagerItem: enthought.pyface.action.action_manager_item.ActionManagerItem
Attributes
- action
The action!
action = Instance(Action)
- control
The toolkit specific control created for this item.
control = Any
- control_id
The toolkit specific Id of the control created for this item.
We have to keep the Id as well as the control because wx tool bar tools are created as 'wxObjectPtr's which do not have Ids, and the Id is required to manipulate the state of a tool via the tool bar 8^( FIXME v3: Why is this part of the public interface?
control_id = Any
- id
The item's unique identifier ('unique' in this case means unique within its group).
id = Property(Str)
Method summary
- add_to_menu(self, parent, menu, controller)
- add_to_palette(self, tool_palette, image_cache, show_labels = True)
- add_to_toolbar(self, parent, tool_bar, image_cache, controller, show_labels = True)
- destroy(self)
Methods
- add_to_palette(self, tool_palette, image_cache, show_labels = True)
Adds the item to a tool palette.
- add_to_toolbar(self, parent, tool_bar, image_cache, controller, show_labels = True)
Adds the item to a tool bar.
- destroy(self)
Called when the action is no longer required.
By default this method calls 'destroy' on the action itself.