Logo Search packages:      
Sourcecode: rapid-photo-downloader version File versions  Download package

def rapid::rapid::SelectionTreeView::on_selection_changed (   self,
  selection 
)

Update download selected button and preview the most recently
selected row in the treeview

Definition at line 3829 of file rapid.py.

03829                                              :
        """
        Update download selected button and preview the most recently
        selected row in the treeview
        """
        self.update_download_selected_button()
        size = selection.count_selected_rows()
        if size == 0:
            self.selected_rows = set()
            self.show_preview(None)
        else:
            if size <= len(self.selected_rows):
                # discard everything, start over
                self.selected_rows = set()
                self.selection_size = size
            model, paths = selection.get_selected_rows()
            for path in paths:
                iter = self.liststore.get_iter(path)
                ref = self.get_mediaFile(iter).treerowref
                
                if ref not in self.selected_rows:
                    self.show_preview(iter)
                    self.selected_rows.add(ref)
            
    def clear_all(self, thread_id = None):


Generated by  Doxygen 1.6.0   Back to index