In a pygame application window, the minimize, resize and close buttons are present. Is there a way to disable the close(X) button?
Just for the record, another option would be to pass the following argument to the set_mode() method call:
pygame.display.set_mode(..., flags = pygame.NOFRAME)
This however makes the whole frame go away, including the top strip to move the window around and the other buttons, such as minimize, so it's rather overkill for just getting rid of the X button.
how to disable the window close button in pygame?