refactor: scr -> screen, act->active, del->delete, remove in obj_clear_flag/state
This commit is contained in:
@@ -11,13 +11,13 @@ kb_ctrl = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6,
|
||||
2, lv.buttonmatrix.CTRL.HIDDEN | 2, 6, lv.buttonmatrix.CTRL.HIDDEN | 2, 2]
|
||||
|
||||
# Create a keyboard and add the new map as USER_1 mode
|
||||
kb = lv.keyboard(lv.scr_act())
|
||||
kb = lv.keyboard(lv.screen_active())
|
||||
|
||||
kb.set_map(lv.keyboard.MODE.USER_1, kb_map, kb_ctrl)
|
||||
kb.set_mode(lv.keyboard.MODE.USER_1)
|
||||
|
||||
# Create a text area. The keyboard will write here
|
||||
ta = lv.textarea(lv.scr_act())
|
||||
ta = lv.textarea(lv.screen_active())
|
||||
ta.align(lv.ALIGN.TOP_MID, 0, 10)
|
||||
ta.set_size(lv.pct(90), 80)
|
||||
ta.add_state(lv.STATE.FOCUSED)
|
||||
|
||||
Reference in New Issue
Block a user