-
Notifications
You must be signed in to change notification settings - Fork 358
Stop AttributeError from SpriteList._atlas and link Lazy SpriteList doc #1901
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
Merged
einarf
merged 17 commits into
pythonarcade:development
from
pushfoo:1882_spritelist_atlas_property_attribute_error
Sep 16, 2023
Merged
Stop AttributeError from SpriteList._atlas and link Lazy SpriteList doc #1901
einarf
merged 17 commits into
pythonarcade:development
from
pushfoo:1882_spritelist_atlas_property_attribute_error
Sep 16, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Remove if wrapping setting _atlas in SpriteList.__init__ * Update conditional _atlas setting in SpriteList._init_deferred * Update type annotations to make `SpriteList.atlas` optional
* Remove unecessary details * Link draw method * Link lazy sprite list section of the programming guide
* Add brief overview of when there may be a performance hit * Link the lazy sprite list section
Member
Author
|
@bunny-therapist How does this look? On my system and the unit test runner, it seems to work. Your example also runs fine now: import arcade
class IssueDemonstrationWindow(arcade.Window):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
sl = arcade.SpriteList(lazy=True)
sl.atlas
window = IssueDemonstrationWindow()
arcade.run()My remaining concern is that we may want to expose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Related to #1882
NoneforSpriteList._atlasandSpriteList.atlaslazy-related unit testsSpriteListdocstrings:typing.castHow to test
Code
./make.py testDoc
./make.py clean./make.py html(optional, workaround for occasional build loop issue)./make.py servedrawandinitializemethod links go toSpriteList's methods?Lazy SpriteListslink go to relevant doc?initializemethod link go toSpriteList.initialize?Lazy SpriteListslink go to relevant doc?drawmethod link go toSpriteList.draw?Lazy SpriteListslink go to relevant doc?