positions.py 文件源码

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

项目:script.matchcenter 作者: enen92 项目源码 文件源码
def getLabel(imagecontrol,label):
    #image control
    image_position = imagecontrol.getPosition()
    image_height = imagecontrol.getHeight()
    image_width = imagecontrol.getWidth()
    #label control
    label_x = int(image_position[0]-0.5*image_width)
    label_y = int(image_position[1]+image_height-0.04*image_height)
    label_height = int(0.2*image_height)
    label_width = int(2*image_width)
    return xbmcgui.ControlLabel(label_x, label_y, label_width, label_height, label, alignment = 0x00000002, font="font10", textColor="0xFFEB9E17")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号