I have a pygame application that I want to set the taskbar icon for. I have tried
import ctypes
myappid = 'mycompany.myproduct.subproduct.version' # arbitrary string
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
but to no avail. I compiled it into a .exe with cx_Freeze and set the .exe icon there. When I run the program it sets the icon in the taskbar to be the default pygame icon. I have also set the icon for the pygame window with
self.programIcon = pygame.image.load(os.path.join(currentPath, 'images', 'Logos', "railwaycontrollerbg.png"))
pygame.display.set_icon(self.programIcon)
Other info:
- Python 3.8 (32 bit)
- Pygame 2.0.0.dev10
- Windows 10 latest version
Thanks in advance for any help.