Answers for "give an icon to the window with pygame"

1

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)
Posted by: Guest on September-24-2020

Code answers related to "give an icon to the window with pygame"

Python Answers by Framework

Browse Popular Code Answers by Language