def _on_action_enabled_changed(self, action, trait_name, old, new):
        if self.control is not None:
            self.control.setEnabled(action.enabled)
Called when the enabled trait is changed on an action.
dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/action/action_item.py/_Tool._on_action_enabled_changed