I have another issue. When I try to to run my code, pygame launches and then stops immediately.
Here's my code :
import pygame
import os
import time
import random
pygame.init()
pygame.font.init()
def main():
clock = pygame.time.Clock()
win = pygame.display.set_mode((Win_Width, Win_Height))
run = True
while run:
clock.tick(40)
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
pygame.quit()
Thank you to help me. Bye !