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)
        api.start_all(id_item_list)
        stopped_icon = self.icons_dict[cons.STATUS_STOPPED]
        queue_icon = self.icons_dict[cons.STATUS_QUEUE]
        for row in self.items:
            if row[1] == stopped_icon:
    def on_stop_all(self):
        api.stop_all()
        stopped_icon = self.icons_dict[cons.STATUS_STOPPED]
        queue_icon = self.icons_dict[cons.STATUS_QUEUE]
        for row in self.items:
 
        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.stopped_downloads[id_item] = download_item
                    else:
                        download_item.status = cons.STATUS_QUEUE
                        self.queue_downloads[id_item] = download_item
 

src/o/c/ochDownloader-HEAD/qt/main.py   ochDownloader(Download)
                stopped = api.stop_download(id_item)
                if stopped:
                    if items[row][1] == self.downloads.icons_dict[cons.STATUS_QUEUE]:
                        items[row][1] = self.downloads.icons_dict[cons.STATUS_STOPPED]
                    self.stop[BTN].setEnabled(False)
                started = api.start_download(id_item)
                if started:
                    items[row][1] = self.downloads.icons_dict[cons.STATUS_QUEUE] #status
                    items[row][10] = None #status_msg
                    self.stop[BTN].setEnabled(True)

src/o/c/ochDownloader-HEAD/core/download/item.py   ochDownloader(Download)
        self.can_copy_link = can_copy_link
        self.host = self._get_host(link)
        self.status = cons.STATUS_QUEUE
        self.status_msg = None
        self.link_status = cons.LINK_CHECKING

src/o/c/ochDownloader-HEAD/addons/ip_renewer/ip_renewer_gui.py   ochDownloader(Download)
                api.start_download(id_item)
                try:
                    self.parent.downloads.rows_buffer[id_item][1] = self.parent.downloads.icons_dict[cons.STATUS_QUEUE]
                except Exception as err:
                    logger.debug(err)