Skip to content
New issue

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

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

Already on GitHub? # to your account

Changing focus away from pysdl2 window causes animations to stop #95

Open
marcusva opened this issue Jun 22, 2016 · 1 comment
Open

Comments

@marcusva
Copy link
Collaborator

Originally reported by: Fernando Quivira (Bitbucket: fquivira, GitHub: fquivira)


I hope this is the best way to figure out if I'm doing something dumb or this is really an issue

I have some basic animation with sprites using pysdl2 on Windows 10 with python3.5. The demo animation works fine, but if I switch the focus to a different application, the animation and the whole program just stops and goes into "not responding" mode.

Is this expected behavior? Is there a way to do let the application flow while I do other stuff like debugging for example? I've tried using Visual Studio python tools to debug, but the render methods don't seem to work when I step through with the debugger

Thanks for the good work! I very much like pysdl2


@marcusva
Copy link
Collaborator Author

Original comment by Fernando Quivira (Bitbucket: fquivira, GitHub: fquivira):


I've attached some dummy example. If I change the focus during the for loop, the animation will stop rendering

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant