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