adding micropython examples (#2286)
* adding micropython examples * adding micropython examples
This commit is contained in:
15
examples/styles/lv_example_style_7.py
Normal file
15
examples/styles/lv_example_style_7.py
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# 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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user