def _on_tool(self, event):

        action = self.item.action
        action_event = ActionEvent()

        is_checkable = (action.style == 'radio' or action.style == 'check')

        # Perform the action!
        action.checked = self.tool_palette.get_tool_state(self.tool_id) == 1
        action.perform(action_event)

        return

#### EOF ######################################################################
Called when the tool palette button is clicked.
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/action/action_item.py/_PaletteTool._on_tool