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

PIXI.Sprite.from in Brython #179

Closed
bvuno opened this issue Dec 3, 2022 · 1 comment
Closed

PIXI.Sprite.from in Brython #179

bvuno opened this issue Dec 3, 2022 · 1 comment

Comments

@bvuno
Copy link

bvuno commented Dec 3, 2022

it looks like PIXI.Sprite.from() does not exist in python + PIXI
and there is no other way to use Sprites

@pmgl
Copy link
Owner

pmgl commented Dec 5, 2022

from being a reserved keyword in Python, you should use instead:

  PIXI.Sprite["from"]()

@pmgl pmgl closed this as completed Dec 5, 2022
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

No branches or pull requests

2 participants