def object_filter_changed ( self, info ):
        """ Handles a new filter being selected.
        """
        filter              = info.object.filter
        info.edit.enabled   = (not filter.template)
        info.delete.enabled = ((not filter.template) and
                               (len( info.filter.factory.values ) > 1))
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/table_editor.py/TableFilterEditor.object_filter_changed/original