lv_example_style_7.py 251 B

1234567891011121314
  1. #
  2. # Using the Arc style properties
  3. #
  4. style = lv.style_t()
  5. style.init()
  6. style.set_arc_color(lv.palette_main(lv.PALETTE.RED))
  7. style.set_arc_width(4)
  8. # Create an object with the new style
  9. obj = lv.arc(lv.scr_act())
  10. obj.add_style(style, 0)
  11. obj.center()