Does anyone know how to set a custom icon for a program in the taskbar?
I know that you can make a shortcut to a program to get whatever icon you want in the top left corner of the program (see image below for refrance) but how do I make a program get a new icon in the taskbar?
The icon displayed in the taskbar is of the executable. When you invoke a python script, it runs the Python interpreter which has that icon you want to replace. You could use something like PyInstaller to build an executable with a custom icon or if you were using a GUI toolkit you could set the icon of the interface (for example SetIcon() in wxWidgets).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.