Maybe you can add a directory filter to achieve this.
Maybe you can add a directory filter to achieve this.
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);