0
\$\begingroup\$

On Python 3.2.5 32 bit, I installed pygame. I made some code with it. It included pygame.display.set_icon(image). The image file is .png and I loaded it by using image = pygame.image.load("clockico.png").convert_alpha() The transparent pixels on the .png file showed up as black. I tried using a .ico file instead of a .png file, but the output was the same. Is there a way to fix this?

\$\endgroup\$
1
\$\begingroup\$

You should change the convert_alpha() part to just convert(), as the convert_alpha() changes the transparent pixels.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.