FileChooser.getFile

Gets the gio.file.File for the currently selected file in the file selector.

If multiple files are selected, one of the files will be returned at random.

If the file chooser is in folder mode, this function returns the selected folder.

More...
interface FileChooser
getFile
()

Return Value

Type: gio.file.File

a selected gio.file.File. You own the returned file; use gobject.object.ObjectG.unref to release it.

Detailed Description

Deprecated: Use gtk.file_dialog.FileDialog instead