Skip to content

Gtk.AnyFilter

class — extends MultiFilter, Gio.ListModel, Buildable

Matches an item when at least one of its filters matches.

To add filters to a GtkAnyFilter, use MultiFilter.append.

Constructors

new

@classmethod
def new(cls) -> AnyFilter

Creates a new empty "any" filter.

Use MultiFilter.append to add filters to it.

This filter matches an item if any of the filters added to it matches the item. In particular, this means that if no filter has been added to it, the filter matches no item.