:right-sidebar: True MultiFilter =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: MultiFilter(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Filter`, :class:`~gi.repository.GObject.Object` Subclasses: :class:`~gi.repository.Gtk.AnyFilter`, :class:`~gi.repository.Gtk.EveryFilter` Implemented Interfaces: :class:`~gi.repository.Gio.ListModel`, :class:`~gi.repository.Gtk.Buildable` ``GtkMultiFilter`` is the base class for filters that combine multiple filters. Methods ------- .. rst-class:: interim-class .. class:: MultiFilter :no-index: .. method:: append(filter: ~gi.repository.Gtk.Filter) -> None Adds a ``filter`` to ``self`` to use for matching. :param filter: A new filter to use .. method:: remove(position: int) -> None Removes the filter at the given ``position`` from the list of filters used by ``self``. If ``position`` is larger than the number of filters, nothing happens and the function returns. :param position: position of filter to remove Properties ---------- .. rst-class:: interim-class .. class:: MultiFilter :no-index: .. attribute:: props.item_type :type: type The type of items. See :obj:`~gi.repository.Gio.ListModel.get_item_type`. .. versionadded:: 4.8 .. attribute:: props.n_items :type: int The number of items. See :obj:`~gi.repository.Gio.ListModel.get_n_items`. .. versionadded:: 4.8