def _add_button_fired(self):
        new_filter = self.selected_template.clone_traits()
        new_filter.template = False
        new_filter.name = new_filter._name = 'New filter'
        self.filters.append(new_filter)
        self.selected_filter = new_filter
Create a new filter based on the selected template and select it.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/table_editor.py/TableFilterEditor._add_button_fired