Skip to content

Commit b85482b

Browse files
authored
Merge pull request #105 from shubham0x13/main
Fix example to use get_content() instead of get_cell()
2 parents e32d05e + 7eac6b8 commit b85482b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/displayio_layout_grid_layout_get_cell_test.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44
"""
55
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.
77
"""
88

99
import board
@@ -47,14 +47,14 @@
4747

4848
main_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

5959
while True:
6060
pass

0 commit comments

Comments
 (0)