So I made a "Yo Mama" joke generator, and it does what it should be doing (It works if I delete all the Pygame-specific code and print it to the terminal/command line). But when I add Pygame and make an application, it shows me the text as a white rectangle. Visual Studio doesn't give me any errors, but the text is seen as a white rectangle. Take a look at the error
import random
import pygame
import os
from yo_mama_jokes import da_jokes
pygame.font.init()
WIDTH, HEIGHT = 750,750
WIN = pygame.display.set_mode((WIDTH,HEIGHT))
pygame.display.set_caption("Your mama joke generator")
def main():
myfont = pygame.font.SysFont("monospace", 20)
run = True
joke = random.choice(da_jokes)
while run:
label = myfont.render(joke, 1, (255,255,255))
WIN.blit(label, (15, 350))
pygame.display.update()
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
main()
