I’m running it through the livewires wrapper which is just training wheels for pygame and other python modules in general; but everytime I run it, it’ll execute and when I try to exit, it will not respond and then crash.
Any input on how I could go about fixing this would be great. There isn’t any input in my textbook and all google seems to yield are results to this problem using pygame itself.
Apparently pygame and Tkinter seem to conflict?
Thanks in advance!
Addendum – This is the code I was trying to run:
from livewires import games
screen_w = 640
screen_h = 480
my_screen = games.Screen (wid, heit)
my_screen.mainloop()
Similar question: Pygame screen freezes when I close it
Those results probably address the same problem you’re having. This is the relevant part of the games.py file from livewires, and nowhere does it call
pygame.quit():The QUIT event just sets a flag which drops you out of the while loop in the
mainloopfunction. I’m guessing that if you find this file in your Python directory and stick apygame.quit()after the last line inmainloop, it will solve your problem.