Changing the application and taskbar icon – Python/Tkinter

Another option on Windows would be the following:

To your python code add the following:

import ctypes

myappid = 'mycompany.myproduct.subproduct.version' # arbitrary string
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)

Leave a Comment