Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions examples/displayio_layout_grid_layout_get_cell_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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