Skip to content

Commit

Permalink
Fix LVGL simulator example (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
PGNetHun authored Jan 25, 2024
1 parent ad8009f commit ca138ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/webassembly/frontend_src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ca138ed

Please sign in to comment.