I recently downloaded pygame on my Mac, but for some reason, the window does not pop up with the screen or anything. I don\'t get an error message, it just runs but doesn\'t act
Please check this solution.
import pygame, sys
from pygame.locals import *
pygame.init()
SCREENWIDTH = 800
SCREENHEIGHT = 800
RED = (255, 0, 0)
screen = pygame.display.set_mode((SCREENWIDTH, SCREENHEIGHT))
while True:
pygame.draw.rect(screen, RED, (400, 400, 20, 20), 0)
screen.fill(RED)
pygame.display.update()