FileFilter#

class ignis.widgets.Widget.FileFilter(*args: Any, **kwargs: Any)#

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.

Properties:
  • mime_types (list[str], required, read-only): A list of MIME types.

  • default (bool, optional, read-write): Whether the filter will be selected by default.

Widget.FileFilter(
    mime_types=["image/jpeg", "image/png"],
    default=True,
    name="Images JPEG/PNG",
)