Is there a way to close a window without quitting pygame

Viewed 91

I have tried looking around a lot for a solution from other questions but I am not sure I could accurately implement them into my program. So I decided to ask here.

Is there a simple way to close a window in pygame whilst keeping pygame opening and able to complete tasks? I use:

pygame.quit()

But it quits the program.

Anyone got an idea?

1 Answers

do pygame.display.quit() to close the window without leaving pygame

Related