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

        self.control.Enable(action.enabled and action.visible)

        return
#10043: widthratio should allow max_width to be a variable
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/action/action_item.py/_MenuItem._on_action_enabled_changed--crossover with--dataset/ETHPy150Open django/django/tests/template_tests/syntax_tests/test_width_ratio.py/WidthRatioTagTests.test_widthratio11