1# 2# Show line wrap, re-color, line align and text scrolling. 3# 4label1 = lv.label(lv.scr_act()) 5label1.set_long_mode(lv.label.LONG.WRAP) # Break the long lines*/ 6label1.set_recolor(True) # Enable re-coloring by commands in the text 7label1.set_text("#0000ff Re-color# #ff00ff words# #ff0000 of a# label, align the lines to the center" 8 "and wrap long text automatically.") 9label1.set_width(150) # Set smaller width to make the lines wrap 10label1.set_style_text_align(lv.ALIGN.CENTER, 0) 11label1.align(lv.ALIGN.CENTER, 0, -40) 12 13 14label2 = lv.label(lv.scr_act()) 15label2.set_long_mode(lv.label.LONG.SCROLL_CIRCULAR) # Circular scroll 16label2.set_width(150) 17label2.set_text("It is a circularly scrolling text. ") 18label2.align(lv.ALIGN.CENTER, 0, 40) 19 20