FileChooserButton#

class ignis.widgets.Widget.FileChooserButton(dialog: FileDialog, label: Label, **kwargs)#

Bases: Gtk.Button

A button that allows the user to select a file.

Widget.FileChooserButton(
    dialog=Widget.FileDialog(
        initial_path=os.path.expanduser("~/.wallpaper"),
        filters=[
            Widget.FileFilter(
                mime_types=["image/jpeg", "image/png"],
                default=True,
                name="Images JPEG/PNG",
            )
        ]
    ),
    label=Widget.Label(label='Select', ellipsize="end", max_width_chars=20)
)
property dialog: FileDialog#
  • required, read-only

An instance of FileDialog.

property label: Label#
  • required, read-only

An instance of Label.