def _menu_action(self, event, name=""):
        action = self._action_dict[name]
        checked = action.isChecked()
        if not checked:
            for ndx in range(self.control.count()):
                if self.control.tabText(ndx) == name:
                    self.control.removeTab(ndx)
        else:
            # TODO: Fix tab order based on the context_object's list
            self.control.addTab(self._pagewidgets[name], name)
Compute and return the PCA transformation of sparse data.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/list_editor.py/NotebookEditor._menu_action--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/pca.py/SparsePCA.__call__