简体   繁体   English

Windows 7任务栏

[英]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? 我知道你可以创建一个程序的快捷方式,以便在程序的左上角获得你想要的任何图标(参见下图中的refrance)但是如何让程序在任务栏中获得一个新图标?

alt text http://i27.tinypic.com/24gq6g0.png alt text http://i27.tinypic.com/24gq6g0.png

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. 当您调用python脚本时,它会运行Python解释器,该解释器具有您要替换的图标。 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). 您可以使用类似PyInstaller的东西来构建带有自定义图标的可执行文件,或者如果您使用的是GUI工具包,则可以设置界面的图标(例如wxWidgets中的SetIcon())。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM