py-sdl2 icon indicating copy to clipboard operation
py-sdl2 copied to clipboard

Changing focus away from pysdl2 window causes animations to stop

Open marcusva opened this issue 9 years ago • 1 comments

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


  • Bitbucket: https://bitbucket.org/marcusva/py-sdl2/issue/95

marcusva avatar Jun 22 '16 13:06 marcusva

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

marcusva avatar Jun 23 '16 14:06 marcusva