Adds a 'choice' to the file chooser.
Adds filter to the list of filters that the user can select between.
Adds a folder to be displayed with the shortcut folders in a file chooser.
Gets the type of operation that the file chooser is performing.
Gets the currently selected option in the 'choice' with the given ID.
Gets whether file chooser will offer to create new folders.
Gets the current folder of chooser as gio.file.File.
Gets the current name in the file selector, as entered by the user.
Gets the gio.file.File for the currently selected file in the file selector.
Lists all the selected files and subfolders in the current folder of chooser as gio.file.File.
Gets the current filter.
Gets the current set of user-selectable filters, as a list model.
Gets whether multiple files can be selected in the file chooser.
Queries the list of shortcut folders in the file chooser.
Removes a 'choice' that has been added with gtk.file_chooser.FileChooser.addChoice.
Removes filter from the list of filters that the user can select between.
Removes a folder from the shortcut folders in a file chooser.
Sets the type of operation that the chooser is performing.
Selects an option in a 'choice' that has been added with gtk.file_chooser.FileChooser.addChoice.
Sets whether file chooser will offer to create new folders.
Sets the current folder for chooser from a gio.file.File.
Sets the current name in the file selector, as if entered by the user.
Sets file as the current filename for the file chooser.
Sets the current filter.
Sets whether multiple files can be selected in the file chooser.
Deprecated: Use gtk.file_dialog.FileDialog instead
gtk.file_chooser.FileChooser is an interface that can be implemented by file selection widgets.
In GTK, the main objects that implement this interface are gtk.file_chooser_widget.FileChooserWidget and gtk.file_chooser_dialog.FileChooserDialog.
You do not need to write an object that implements the gtk.file_chooser.FileChooser interface unless you are trying to adapt an existing file selector to expose a standard programming interface.
gtk.file_chooser.FileChooser allows for shortcuts to various places in the filesystem. In the default implementation these are displayed in the left pane. It may be a bit confusing at first that these shortcuts come from various sources and in various flavours, so lets explain the terminology here:
File Names and Encodings
When the user is finished selecting files in a gtk.file_chooser.FileChooser, your program can get the selected filenames as gio.file.Files.
Adding options
You can add extra widgets to a file chooser to provide options that are not present in the default design, by using gtk.file_chooser.FileChooser.addChoice. Each choice has an identifier and a user visible label; additionally, each choice can have multiple options. If a choice has no option, it will be rendered as a check button with the given label; if a choice has options, it will be rendered as a combo box.