how check windowevent_hidden in pygame code example Example: how to update screen in pygame pygame.display.update()