acid-drop/lib/lvgl/examples/styles/lv_example_style_7.py

14 lines
251 B
Python
Raw Normal View History

2024-05-23 22:42:03 +00:00
#
# Using the Arc style properties
#
style = lv.style_t()
style.init()
style.set_arc_color(lv.palette_main(lv.PALETTE.RED))
style.set_arc_width(4)
# Create an object with the new style
obj = lv.arc(lv.scr_act())
obj.add_style(style, 0)
obj.center()