Home
last modified time | relevance | path

Searched refs:btnm1 (Results 1 – 2 of 2) sorted by relevance

/lvgl-3.7.0/examples/widgets/btnmatrix/
Dlv_example_btnmatrix_1.c23 lv_obj_t * btnm1 = lv_btnmatrix_create(lv_scr_act()); in lv_example_btnmatrix_1() local
24 lv_btnmatrix_set_map(btnm1, btnm_map); in lv_example_btnmatrix_1()
25 lv_btnmatrix_set_btn_width(btnm1, 10, 2); /*Make "Action1" twice as wide as "Action2"*/ in lv_example_btnmatrix_1()
26 lv_btnmatrix_set_btn_ctrl(btnm1, 10, LV_BTNMATRIX_CTRL_CHECKABLE); in lv_example_btnmatrix_1()
27 lv_btnmatrix_set_btn_ctrl(btnm1, 11, LV_BTNMATRIX_CTRL_CHECKED); in lv_example_btnmatrix_1()
28 lv_obj_align(btnm1, LV_ALIGN_CENTER, 0, 0); in lv_example_btnmatrix_1()
29 lv_obj_add_event_cb(btnm1, event_handler, LV_EVENT_ALL, NULL); in lv_example_btnmatrix_1()
Dlv_example_btnmatrix_1.py15 btnm1 = lv.btnmatrix(lv.scr_act()) variable
16 btnm1.set_map(btnm_map)
17 btnm1.set_btn_width(10, 2) # Make "Action1" twice as wide as "Action2"
18 btnm1.set_btn_ctrl(10, lv.btnmatrix.CTRL.CHECKABLE)
19 btnm1.set_btn_ctrl(11, lv.btnmatrix.CTRL.CHECKED)
20 btnm1.align(lv.ALIGN.CENTER, 0, 0)
21 btnm1.add_event_cb(event_handler, lv.EVENT.ALL, None)