widgets.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:StarCraft-Casting-Tool 作者: teampheenix 项目源码 文件源码
def setProgress(self, data):
        """Set the progress of the bar."""
        # TODO: What is the data structure in case of a patch?
        module_logger.info("Progress {}".format(data))
        try:
            text = _(
                'Downloading required files...: Total file size {}, Time remaining {}.')
            text = text.format(humanize.naturalsize(
                data['total']), data['time'])
            self.setLabelText(text)
            self.setValue(int(float(data['percent_complete']) * 5))
        except Exception as e:
            module_logger.exception("message")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号