how to remove text in pygame

Solutions on MaxInterview for how to remove text in pygame by the best coders in the world

showing results for - "how to remove text in pygame"
Antonio
18 Feb 2018
1screen = pygame.display.get_surface()
2font = pygame.font.Font(None, 40)
3
4font_surface = font.render("original", True, pygame.Color("white"));
5screen.blit(surface, (0, 0))
6
7screen.fill(pygame.Color("black")) # erases the entire screen surface
8font_surface = font.render("edited", True, pygame.Color("white"));
9screen.blit(surface, (0, 0))