def on_copy_link(self): rows = self.get_selected_rows() if rows: items_list = api.get_download_items([self.items[row_index][0] for row_index in rows]) links_list = [download_item.link for download_item in items_list if download_item.can_copy_link] clipboard = QApplication.clipboard() clipboard.setText('\n'.join(links_list))
def on_open_folder(self): rows = self.get_selected_rows() if rows: items_list = api.get_download_items([self.items[row_index][0] for row_index in rows]) paths_list = {download_item.path for download_item in items_list} for folder_path in paths_list: utils.open_folder_window(folder_path)
def on_copy_link(self, widget): """""" model, rows = self.treeView.get_selection().get_selected_rows() if rows: items_list = api.get_download_items([model[row][0] for row in rows]) links_list = [download_item.link for download_item in items_list if download_item.can_copy_link] clipboard = gtk.Clipboard() clipboard.set_text('\n'.join(links_list))
def on_open_folder(self): rows = self.get_selected_rows() if rows: items_list = api.get_download_items( [self.items[row_index][0] for row_index in rows]) paths_list = {download_item.path for download_item in items_list} for folder_path in paths_list: utils.open_folder_window(folder_path)
def on_open_folder(self): rows = self.get_selected_rows() if rows: items_list = api.get_download_items([self.items[row_index][0] for row_index in rows]) paths_list = set([download_item.path for download_item in items_list]) for folder_path in paths_list: #misc.open_folder_window(folder_path) threading.Thread(group=None, target=misc.open_folder_window, name=None, args=(folder_path, )).start()
def on_copy_link(self): rows = self.get_selected_rows() if rows: items_list = api.get_download_items( [self.items[row_index][0] for row_index in rows]) links_list = [ download_item.link for download_item in items_list if download_item.can_copy_link ] clipboard = QApplication.clipboard() clipboard.setText('\n'.join(links_list))
def on_copy_link(self, widget): """""" model, rows = self.treeView.get_selection().get_selected_rows() if rows: items_list = api.get_download_items( [model[row][0] for row in rows]) links_list = [ download_item.link for download_item in items_list if download_item.can_copy_link ] clipboard = gtk.Clipboard() clipboard.set_text('\n'.join(links_list))
def on_open_folder(self, widget): """""" model, rows = self.treeView.get_selection().get_selected_rows() if rows: paths_list = [] items_list = api.get_download_items([model[row][0] for row in rows]) for download_item in items_list: folder_path = download_item.path if folder_path not in paths_list: #misc.open_folder_window(folder_path) threading.Thread(group=None, target=misc.open_folder_window, name=None, args=(folder_path, )).start() paths_list.append(folder_path)
def on_open_folder(self): rows = self.get_selected_rows() if rows: items_list = api.get_download_items( [self.items[row_index][0] for row_index in rows]) paths_list = set( [download_item.path for download_item in items_list]) for folder_path in paths_list: #misc.open_folder_window(folder_path) threading.Thread(group=None, target=misc.open_folder_window, name=None, args=(folder_path, )).start()
def on_open_folder(self, widget): """""" model, rows = self.treeView.get_selection().get_selected_rows() if rows: paths_list = [] items_list = api.get_download_items( [model[row][0] for row in rows]) for download_item in items_list: folder_path = download_item.path if folder_path not in paths_list: #misc.open_folder_window(folder_path) threading.Thread(group=None, target=misc.open_folder_window, name=None, args=(folder_path, )).start() paths_list.append(folder_path)