def _on_action_checked_changed(self, action, trait_name, old, new):

        if action.style == 'radio':
            # If we're turning this one on, then we need to turn all the others
            # off.  But if we're turning this one off, don't worry about the
            # others.
            if new:
                for item in self.item.parent.items:
                    if item is not self.item:
                        item.action.checked = False

        # This will *not* emit a tool event.
        self.tool_palette.toggle_tool(self.tool_id, new)

        return

    #### Tool palette event handlers ##########################################
Called when the checked trait is changed on an action.
dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/action/action_item.py/_PaletteTool._on_action_checked_changed