You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Move button
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ scr.set_style_bg_color(lv.color_hex(0x000000), 0)
|
||||
# Create a button (using lv.obj as a base)
|
||||
btn = lv.obj(scr)
|
||||
btn.set_size(100, 50)
|
||||
btn.align(lv.ALIGN.LEFT, 20, 20)
|
||||
btn.align(lv.ALIGN.LEFT, 40, 40)
|
||||
|
||||
# Add button style
|
||||
style = lv.style_t()
|
||||
|
||||
Reference in New Issue
Block a user