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:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user