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 33# SPDX-License-Identifier: MIT
44"""
55Make 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.
77"""
88
99import board
4747
4848main_group .append (layout )
4949
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"
5252
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"
5555
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
5858
5959while True :
6060 pass
You can’t perform that action at this time.
0 commit comments