Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/o/c/ochDownloader-HEAD/qt/downloads.py   ochDownloader(Download)
    def on_clear_completed(self):
        finished_icon = self.icons_dict[cons.STATUS_FINISHED]
        for row in self.items[:]:
            if row[1] == finished_icon:
                self.remove_row(row[0])
 
        return {cons.STATUS_RUNNING: running, cons.STATUS_STOPPED: stopped,
                cons.STATUS_QUEUE: queue, cons.STATUS_FINISHED: finished,
                cons.STATUS_ERROR: error, 
                cons.DL_RESUME: resume, cons.DL_PREMIUM: premium}

src/o/c/ochDownloader-HEAD/core/download_managment/manager.py   ochDownloader(Download)
            self.update_download_item(th, download_item)
            old_status = download_item.status
            if old_status in (cons.STATUS_STOPPED, cons.STATUS_FINISHED, cons.STATUS_ERROR):
 
                if old_status == cons.STATUS_STOPPED:
                    self.stopped_downloads[id_item] = download_item
                elif old_status == cons.STATUS_FINISHED:
                self.next_download()
 
                if old_status == cons.STATUS_FINISHED:
                    events.download_complete.emit(download_item)
                if not self.active_downloads and old_status != cons.STATUS_STOPPED:

src/o/c/ochDownloader-HEAD/core/download/item.py   ochDownloader(Download)
    def _speed(self):
        """"""
        if not self.start_time or self.status in (cons.STATUS_FINISHED, cons.STATUS_STOPPED, cons.STATUS_ERROR):
            return 0
        size_complete = self.size_complete

src/o/c/ochDownloader-HEAD/core/download/downloader.py   ochDownloader(Download)
                logger.debug(err)
        else:
            self.status = cons.STATUS_FINISHED
            self.status_msg = "Finished"
        finally: