Searched refs:pwd_ta (Results 1 – 2 of 2) sorted by relevance
/lvgl-3.7.0/examples/widgets/textarea/ |
D | lv_example_textarea_2.c | 11 lv_obj_t * pwd_ta = lv_textarea_create(lv_scr_act()); in lv_example_textarea_2() local 12 lv_textarea_set_text(pwd_ta, ""); in lv_example_textarea_2() 13 lv_textarea_set_password_mode(pwd_ta, true); in lv_example_textarea_2() 14 lv_textarea_set_one_line(pwd_ta, true); in lv_example_textarea_2() 15 lv_obj_set_width(pwd_ta, lv_pct(40)); in lv_example_textarea_2() 16 lv_obj_set_pos(pwd_ta, 5, 20); in lv_example_textarea_2() 17 lv_obj_add_event_cb(pwd_ta, ta_event_cb, LV_EVENT_ALL, NULL); in lv_example_textarea_2() 22 lv_obj_align_to(pwd_label, pwd_ta, LV_ALIGN_OUT_TOP_LEFT, 0, 0); in lv_example_textarea_2() 41 lv_keyboard_set_textarea(kb, pwd_ta); /*Focus it on one of the text areas to start*/ in lv_example_textarea_2()
|
D | lv_example_textarea_2.py | 17 pwd_ta = lv.textarea(lv.scr_act()) variable 18 pwd_ta.set_text("") 19 pwd_ta.set_password_mode(True) 20 pwd_ta.set_one_line(True) 21 pwd_ta.set_width(LV_HOR_RES // 2 - 20) 22 pwd_ta.set_pos(5, 20) 23 pwd_ta.add_event_cb(ta_event_cb, lv.EVENT.ALL, None) 28 pwd_label.align_to(pwd_ta, lv.ALIGN.OUT_TOP_LEFT, 0, 0) 48 kb.set_textarea(pwd_ta) # Focus it on one of the text areas to start
|