lcars_widgets.py 文件源码

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

项目:rpi_lcars 作者: tobykurien 项目源码 文件源码
def __init__(self, colour, pos, message, size=1.0, background=None, handler=None):
        self.colour = colour
        self.background = background
        self.font = Font("assets/swiss911.ttf", int(19.0 * size))

        self.renderText(message)
        # center the text if needed 
        if (pos[1] < 0):
            pos = (pos[0], 400 - self.image.get_rect().width / 2)

        LcarsWidget.__init__(self, colour, pos, None, handler)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号