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")
评论列表
文章目录