How to allow the user to select a directory / folder using a FileChooserDialog?

1

Maybe you can add a directory filter to achieve this.

    
asked by anonymous 24.11.2014 / 15:24

1 answer

2

You would probably have to use the set_action method with the correct filter option. Something like this:

seuDialogo.set_action(gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER)

You have an example here in C ++.

Gtk::FileChooserDialog dialog("Please choose a folder", Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER);
    
24.11.2014 / 16:04