def get_icons(self): alive = media.get_pixmap(media.ALIVE, media.SMALL) dead = media.get_pixmap(media.DEAD, media.SMALL) error = media.get_pixmap(media.ERROR, media.SMALL) checking = media.get_pixmap(media.CHECKING, media.SMALL) #unavailable = media.get_pixmap(media.ERROR, media.SMALL) return {cons.LINK_ALIVE: alive, cons.LINK_DEAD: dead, cons.LINK_UNAVAILABLE: error, cons.LINK_ERROR: error, cons.LINK_CHECKING: checking}
def get_icons(self): running = media.get_pixmap(media.START, media.SMALL) stopped = media.get_pixmap(media.STOP, media.SMALL) queue = media.get_pixmap(media.QUEUE, media.SMALL) finished = media.get_pixmap(media.CHECK, media.SMALL) error = media.get_pixmap(media.X_MARK, media.SMALL) resume = media.get_pixmap(media.REFRESH, media.SMALL) premium = media.get_pixmap(media.ACCOUNTS, media.SMALL) 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}
def get_icons(self): running = media.get_pixmap(media.START, media.SMALL) stopped = media.get_pixmap(media.STOP, media.SMALL) queue = media.get_pixmap(media.QUEUE, media.SMALL) finished = media.get_pixmap(media.CHECK, media.SMALL) error = media.get_pixmap(media.X_MARK, media.SMALL) resume = media.get_pixmap(media.REFRESH, media.SMALL) premium = media.get_pixmap(media.ACCOUNTS, media.SMALL) 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 }