def on_download_to_activated(self, menu_item):
tree_paths = self.iconview.get_selected_items()<EOL>if not tree_paths:<EOL><INDENT>return<EOL><DEDENT>dialog = Gtk.FileChooserDialog(_('<STR_LIT>'), self.app.window,<EOL>Gtk.FileChooserAction.SELECT_FOLDER,<EOL>(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,<EOL>Gtk.STOCK_OK, Gtk.ResponseType.OK))<EOL>response = dialog.run()<EOL>if response != Gtk.ResponseType.OK:<EOL><INDENT>dialog.destroy()<EOL>return<EOL><DEDENT>dirname = dialog.get_filename()<EOL>dialog.destroy()<EOL>pcs_files = [self.get_pcs_file(p) for p in tree_paths]<EOL>self.app.blink_page(self.app.download_page)<EOL>self.app.download_page.add_tasks(pcs_files, dirname)<EOL>
下载文件/目录到指定的文件夹里.