FileChooser.addChoice

void addChoice(string id, string label, string[] options = null, string[] optionLabels = null)

Adds a 'choice' to the file chooser.

This is typically implemented as a combobox or, for boolean choices, as a checkbutton. You can select a value using [gtk.file_chooser.FileChooser.setChoice] before the dialog is shown, and you can obtain the user-selected value in the [gtk.dialog.Dialog.response] signal handler using [gtk.file_chooser.FileChooser.getChoice].

Parameters

idid for the added choice
labeluser-visible label for the added choice
optionsids for the options of the choice, or null for a boolean choice
optionLabelsuser-visible labels for the options, must be the same length as options

Deprecated

Use [gtk.file_dialog.FileDialog] instead