Answers for "how to set an icon in pygame"

6

how to set the icon of the window in pygame

icon = pygame.image.load('icon.png')
pygame.display.set_icon(icon)
Posted by: Guest on February-12-2021
1

how to change icon in pygame

programIcon = pygame.image.load("icon.png")

pygame.display.set_icon(programIcon)
Posted by: Guest on July-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language