Skip to content

Conversation

FoamyGuy
Copy link
Contributor

@FoamyGuy FoamyGuy commented Apr 2, 2025

This adds a new pop_content() function to GridLayout. Previously there was no easy way to remove content from the grid once it was added. This functionality made the Set card game I am working on much easier to implement.

I've also rename get_cell() to get_content() which is a breaking change, we'll need to bump major version number if merged. In hindsight I think the add and get functions should have matched in the terms used in their names. "content" makes more sense than "cell" to me since what it gets or adds is the content that into the cell at the position specified.

@FoamyGuy FoamyGuy requested a review from a team April 2, 2025 15:20
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt tannewt merged commit 1af1781 into adafruit:main Apr 5, 2025
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants