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

def rapid::rapid::SelectionTreeView::get_status_icon (   self,
  status,
  preview = False 
)

Returns the correct icon, based on the status

Definition at line 3649 of file rapid.py.

03649                                                     :
        """
        Returns the correct icon, based on the status
        """
        if status == STATUS_WARNING:
            status_icon = self.warning_icon
        elif status == STATUS_CANNOT_DOWNLOAD:
            status_icon = self.error_icon
        elif status == STATUS_DOWNLOADED:
            status_icon =  self.downloaded_icon
        elif status == STATUS_NOT_DOWNLOADED:
            if preview:
                status_icon = self.not_downloaded_icon_tick
            else:
                status_icon = self.not_downloaded_icon
        elif status in [STATUS_DOWNLOADED_WITH_WARNING, STATUS_BACKUP_PROBLEM]:
            status_icon = self.downloaded_with_warning_icon
        elif status in [STATUS_DOWNLOAD_FAILED, STATUS_DOWNLOAD_AND_BACKUP_FAILED]:
            status_icon = self.downloaded_with_error_icon
        elif status == STATUS_DOWNLOAD_PENDING:
            status_icon = self.download_pending_icon
        else:
            sys.stderr.write("FIXME: unknown status: %s\n" % status)
            status_icon = self.not_downloaded_icon
        return status_icon
        
    def get_tree_row_refs(self):


Generated by  Doxygen 1.6.0   Back to index