Skip to content

Gtk.MultiFilter

class — extends Filter, Gio.ListModel, Buildable

Base class for filters that combine multiple filters.

Methods

append

def append(self, filter: Filter) -> None

Adds a filter.

Parameters:

  • filter — a filter to add

remove

def remove(self, position: int) -> None

Removes a filter.

If position is larger than the number of filters, nothing happens.

Parameters:

  • position — position of filter to remove

Properties

item_type

item_type: type | GObject.Type  # read-only

The type of items.

See Gio.ListModel.get_item_type.

n_items

n_items: int  # read-only

The number of items.

See Gio.ListModel.get_n_items.