refactor(btn, img): rename btn to button and img to image
This commit is contained in:
@@ -25,7 +25,7 @@ void lv_example_grid_1(void)
|
||||
uint8_t col = i % 3;
|
||||
uint8_t row = i / 3;
|
||||
|
||||
obj = lv_btn_create(cont);
|
||||
obj = lv_button_create(cont);
|
||||
/*Stretch the cell horizontally and vertically too
|
||||
*Set span to 1 to make the cell 1 column/row sized*/
|
||||
lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_STRETCH, col, 1,
|
||||
|
||||
@@ -17,7 +17,7 @@ for i in range(9):
|
||||
col = i % 3
|
||||
row = i // 3
|
||||
|
||||
obj = lv.btn(cont)
|
||||
obj = lv.button(cont)
|
||||
# Stretch the cell horizontally and vertically too
|
||||
# Set span to 1 to make the cell 1 column/row sized
|
||||
obj.set_grid_cell(lv.GRID_ALIGN.STRETCH, col, 1,
|
||||
|
||||
Reference in New Issue
Block a user