+ def set_filters(self, entry_filters):
+ """
+ Set the filters that could be applied to this list. Each filter
+ can be applied in turn by calling switch_entry_filter (for
+ example from a key binding).
+
+ The entry_filters argument should be a list of filters. The
+ active filter is stored into self.filtered_list and should be
+ processed by generate_widgets in the subclass.
+ """
+ self.current_entry_filter_index = 0
+ self.entry_filters = entry_filters
+ self.filtered_list = self.entry_filters[0]