File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
# SPDX-License-Identifier: MIT
4
4
"""
5
5
Make green and purple rectangles and then update the color
6
- and text values of the labels using the get_cell () function.
6
+ and text values of the labels using the get_content () function.
7
7
"""
8
8
9
9
import board
47
47
48
48
main_group .append (layout )
49
49
50
- layout .get_cell ((0 , 0 )).text = "Happy"
51
- layout .get_cell ((1 , 0 )).text = "Circuit"
50
+ layout .get_content ((0 , 0 )).text = "Happy"
51
+ layout .get_content ((1 , 0 )).text = "Circuit"
52
52
53
- layout .get_cell ((0 , 1 )).text = "Python"
54
- layout .get_cell ((1 , 1 )).text = "Day"
53
+ layout .get_content ((0 , 1 )).text = "Python"
54
+ layout .get_content ((1 , 1 )).text = "Day"
55
55
56
- layout .get_cell ((0 , 1 )).background_color = 0x007700
57
- layout .get_cell ((1 , 1 )).background_color = 0x770077
56
+ layout .get_content ((0 , 1 )).background_color = 0x007700
57
+ layout .get_content ((1 , 1 )).background_color = 0x770077
58
58
59
59
while True :
60
60
pass
You can’t perform that action at this time.
0 commit comments