Can't set an icon on Pygame using a .png file

Viewed 1178

First, I load my icon image:

icon = pygame.image.load ('apple2.png')

Then I set the icon by using set_icon method:

pygame.display.set_icon (icon)

I run the script, and my icon is not visible.

It shows this instead:

Small icon of a box with a blue bar.

1 Answers
Related