Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remove_sprite_list_by_index to Scene #1723

Merged
merged 4 commits into from
Apr 24, 2023

Conversation

tiffanyxiao
Copy link
Contributor

Request for this function from: #1721 (review)

What was done

  • Added remove_sprite_list_by_index() to scene.py to delete SpriteLists from the scene by index
  • Added delete by index in __delitem__()
  • Added test cases for remove_sprite_by_[method]

How to test

  • Run the pytests (tests/unit/scene/test_scene_remove_sprite_lists.py and tests/unit/scene/test_scene_len_delitem.py have been updated).

@Cleptomania Cleptomania merged commit 036535a into pythonarcade:development Apr 24, 2023
5 checks passed
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.

None yet

2 participants