App-lvgl-touchPad/components/lvgl/examples/widgets/label/lv_example_label_5.py
2024-12-01 12:20:05 +00:00

11 lines
341 B
Python
Executable File

#
# Show customizing the circular scrolling animation of a label with `LV_LABEL_LONG_SCROLL_CIRCULAR` long mode.
#
label1 = lv.label(lv.scr_act())
label1.set_long_mode(lv.label.LONG.SCROLL_CIRCULAR) # Circular scroll
label1.set_width(150)
label1.set_text("It is a circularly scrolling text. ")
label1.align(lv.ALIGN.CENTER, 0, 40)