mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
14 lines
257 B
Python
14 lines
257 B
Python
#
|
|
# 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.screen_active())
|
|
obj.add_style(style, 0)
|
|
obj.center()
|