example(micropython): updated MicroPython examples according to LVGL changes (#4031)

This commit is contained in:
Uli Raich
2023-03-10 21:44:12 +01:00
committed by GitHub
parent 55c9a9220b
commit d1c6c61780
24 changed files with 394 additions and 225 deletions

View File

@@ -7,31 +7,26 @@ panel.set_size(200, 200)
panel.center()
child = lv.obj(panel)
child.set_pos(0, 0)
child.set_pos(0, 0);
child.set_size(70, 70)
label = lv.label(child)
label.set_text("Zero")
label.center()
child = lv.obj(panel)
child.set_pos(-40, 100)
label = lv.label(child)
label.set_text("Left")
label.center()
child.set_pos(160, 80)
child.set_size(80, 80)
child = lv.obj(panel)
child.set_pos(90, -30)
label = lv.label(child)
label.set_text("Top")
label.center()
child2 = lv.btn(child)
child2.set_size(100, 50)
child = lv.obj(panel)
child.set_pos(150, 80)
label = lv.label(child)
label = lv.label(child2)
label.set_text("Right")
label.center()
child = lv.obj(panel)
child.set_pos(60, 170)
child.set_pos(40, 160)
child.set_size(100, 70)
label = lv.label(child)
label.set_text("Bottom")
label.center()