Is it possible to install gtk.FileChooserDialog / gtk.FileChooserButton only so that users can select a folder / directory?
Maybe I will add a directory filter for this? How can I do this so that the user can select only the folder?
email_dialog = gtk.FileChooserDialog(title="Select folder", buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) email_filter = gtk.FileFilter() email_filter.set_name("Folder") email_filter.add_pattern("*")
source share