Apr-14-2019, 10:25 AM
Your error is coming from line 215. You called pygame quit before all drawing was done.
Button should be a class by itself.
class Updates need to be remove.
Most important pygame should have only one main loop. With either pygame.display.flip or pygame.display.update.
Should reduce global variables.
Pygame color has builtin colors.
play = FalseWhen you fill surface with color. It will erase everything that you just drawn.
Button should be a class by itself.
class Updates need to be remove.
Most important pygame should have only one main loop. With either pygame.display.flip or pygame.display.update.
Should reduce global variables.
Pygame color has builtin colors.
color_list = [pygame.Color('red'), pygame.Color('red3'), # darker red pygame.Color('black'), pygame.Color('lightblue'), pygame.Color('blue')]
99 percent of computer problems exists between chair and keyboard.