how to set the icon of the window in pygame

Solutions on MaxInterview for how to set the icon of the window in pygame by the best coders in the world

showing results for - "how to set the icon of the window in pygame"
Clarence
25 Feb 2020
1icon = pygame.image.load('icon.png')
2pygame.display.set_icon(icon)