Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 7 taskbar

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?

alt text

like image 462
Pappegye Avatar asked Mar 23 '26 12:03

Pappegye


1 Answers

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).

like image 163
excid3 Avatar answered Mar 26 '26 00:03

excid3



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!