pygame display file icon code example
Example 1: how to make a custom icon for pygame
gameIcon = pygame.image.load('carIcon.png')
pygame.display.set_icon(gameIcon)
Example 2: pygame change icon
import pygame
win = pygame.display.set_mode((500, 500))
pygame.display.set_caption('Hello World')
icon = pygame.image.load("<< <<image_Nmae>>.<<extension>> >>")
pygame.display.set_icon(icon)