def _on_action_accelerator_changed(self, action, trait_name, old, new):
        if self.control is not None:
            self.control.setShortcut(action.accelerator)
Pretend like we have a database and we are accessing it through this hypothetical interface.
dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/action/action_item.py/_MenuItem._on_action_accelerator_changed--crossover with--dataset/ETHPy150Open twisted/nevow/examples/db/db.py/doQuery