FileChooserButton#
- class ignis.widgets.Widget.FileChooserButton(dialog: FileDialog, label: Label, **kwargs)#
Bases:
Gtk.Button
A button that allows the user to select a file.
- Parameters:
dialog (
FileDialog
) -- An instance ofFileDialog
.**kwargs -- Properties to set.
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) )
- gproperty dialog: FileDialog#
read-only
An instance of
FileDialog
.