I've searched far and wide for a solution to this problem but I can't seem to find it.
I'm using pygame on Spyder (on macOS), creating a window with pygame.display.set_mode()
etc.
I have put
pygame.display.quit()
pygame.quit()
at the end of my code and the window does effectively close, however a Python icon keeps running in my program bar, saying "Application not responding" and I always have to force quit, otherwise it will slow down the compiler.
Is there a way I can close it automatically with the display at the end of the program? I've tried sys.exit()
but nothing.
Any help would be super appreciated! Thanks in advance.