FileChooserWidget#
Deprecated since version 4.10: Direct use of GtkFileChooserWidget
is deprecated
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
, FileChooser
GtkFileChooserWidget
is a widget for choosing files.
It exposes the FileChooser
interface, and you should
use the methods of this interface to interact with the
widget.
Shortcuts and Gestures#
GtkFileChooserWidget
supports the following keyboard shortcuts:
Shift`+:kbd:`F10 or Menu opens the context menu.
The following signals have default keybindings:
CSS nodes#
GtkFileChooserWidget
has a single CSS node with name filechooser.
Constructors#
- class FileChooserWidget
- classmethod new(action: FileChooserAction) Widget #
Creates a new
GtkFileChooserWidget
.This is a file chooser widget that can be embedded in custom windows, and it is the same widget that is used by
GtkFileChooserDialog
.Deprecated since version 4.10: Direct use of
GtkFileChooserWidget
is deprecated- Parameters:
action – Open or save mode for the widget
Properties#
Signals#
- class FileChooserWidget.signals
-
- location_popup(path: str) None #
The type of the None singleton.
- Parameters:
path – a string that gets put in the text entry for the file name
- quick_bookmark(bookmark_index: int) None #
The type of the None singleton.
- Parameters:
bookmark_index – the number of the bookmark to switch to
The type of the None singleton.