fix(examples) adjust constant names in Micropython examples (#3532)

Due to spurious enums (https://github.com/lvgl/lv_binding_micropython/issues/199) wrong constant names were generated. Fix these constants.
This commit is contained in:
Amir Gonnen
2022-07-30 18:10:56 +03:00
committed by GitHub
parent 2461ac0758
commit 7a23be73ab
38 changed files with 64 additions and 64 deletions

View File

@@ -39,7 +39,7 @@ def event_cb(e):
# Change the draw descriptor the 3rd button
elif dsc.id == 2:
dsc.rect_dsc.radius = lv.RADIUS.CIRCLE
dsc.rect_dsc.radius = lv.RADIUS_CIRCLE
if obj.get_selected_btn() == dsc.id:
dsc.rect_dsc.bg_color = lv.palette_darken(lv.PALETTE.RED, 3)
else:

View File

@@ -30,7 +30,7 @@ style_bg.init()
style_bg.set_pad_all(0)
style_bg.set_pad_gap(0)
style_bg.set_clip_corner(True)
style_bg.set_radius(lv.RADIUS.CIRCLE)
style_bg.set_radius(lv.RADIUS_CIRCLE)
style_bg.set_border_width(0)