[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Re: Pygame doesn't close properly so I can't delete the file it's using



That's because my_file is a string, not a file handle.

my_file = "Text To Speech.mp3"


When using with open, the file is closed when the context handler ends


Note: In the email, your code did not get posted. I think it has something to do with nabble. When I clicked on that, then, I do see a couple different versions.