def init_cycle_controls(self):
#self.log(' init_cycle_controls start')
for _ in xrange(self.IMAGE_CONTROL_COUNT):
img_control = ControlImage(0, 0, 0, 0, '', aspectRatio=2) #(values 0 = stretch (default), 1 = scale up (crops), 2 = scale down (black bars)
txt_control = ControlTextBox(0, 0, 0, 0, font='font16')
# xbfont_left = 0x00000000
# xbfont_right = 0x00000001
# xbfont_center_x = 0x00000002
# xbfont_center_y = 0x00000004
# xbfont_truncated = 0x00000008
#ControlLabel(x, y, width, height, label, font=None, textColor=None, disabledColor=None, alignment=0, hasPath=False, angle=0)
#txt_control = ControlLabel(0, 0, 0, 0, '', font='font30', textColor='', disabledColor='', alignment=6, hasPath=False, angle=0)
#self.image_controls.append(img_control)
self.tni_controls.append([txt_control,img_control])
#self.log(' init_cycle_controls end')
评论列表
文章目录