FileFilter#

class ignis.widgets.Widget.FileFilter(mime_types: list[str], **kwargs)#

Bases: Gtk.FileFilter

Note

This is not a regular widget. It doesn't support common widget properties and cannot be added as a child to a container.

A file filter. Intended for use in FileDialog. Uses MIME types, here is a list of common MIME types.

Widget.FileFilter(
    mime_types=["image/jpeg", "image/png"],
    default=True,
    name="Images JPEG/PNG",
)
property mime_types: list[str]#
  • required, read-only

A list of MIME types.

property default: bool#
  • optional, read-write

Whether the filter will be selected by default.