From 7eac6b8038cae2a7252b1e78539f6b0a674773d4 Mon Sep 17 00:00:00 2001 From: Shubham Patel <165564832+shubham0x13@users.noreply.github.com> Date: Tue, 2 Sep 2025 13:53:57 +0530 Subject: [PATCH] Update example --- .../displayio_layout_grid_layout_get_cell_test.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/displayio_layout_grid_layout_get_cell_test.py b/examples/displayio_layout_grid_layout_get_cell_test.py index 06ccfd0..66d856a 100644 --- a/examples/displayio_layout_grid_layout_get_cell_test.py +++ b/examples/displayio_layout_grid_layout_get_cell_test.py @@ -3,7 +3,7 @@ # SPDX-License-Identifier: MIT """ Make green and purple rectangles and then update the color -and text values of the labels using the get_cell() function. +and text values of the labels using the get_content() function. """ import board @@ -47,14 +47,14 @@ main_group.append(layout) -layout.get_cell((0, 0)).text = "Happy" -layout.get_cell((1, 0)).text = "Circuit" +layout.get_content((0, 0)).text = "Happy" +layout.get_content((1, 0)).text = "Circuit" -layout.get_cell((0, 1)).text = "Python" -layout.get_cell((1, 1)).text = "Day" +layout.get_content((0, 1)).text = "Python" +layout.get_content((1, 1)).text = "Day" -layout.get_cell((0, 1)).background_color = 0x007700 -layout.get_cell((1, 1)).background_color = 0x770077 +layout.get_content((0, 1)).background_color = 0x007700 +layout.get_content((1, 1)).background_color = 0x770077 while True: pass