diff --git a/ports/webassembly/frontend_src/main.js b/ports/webassembly/frontend_src/main.js index df11417cefab..e1056b49c4a3 100644 --- a/ports/webassembly/frontend_src/main.js +++ b/ports/webassembly/frontend_src/main.js @@ -399,11 +399,11 @@ import lvgl as lv # Create a button with a label scr = lv.obj() -btn = lv.btn(scr) +btn = lv.button(scr) btn.align(lv.ALIGN.CENTER, 0, 0) label = lv.label(btn) label.set_text('Hello World!') -lv.scr_load(scr) +lv.screen_load(scr) `, language: "python", theme: "vs-dark",