简体   繁体   中英

Set multiple icon sizes using PyInstaller

I've created a exe from a Python file using PyInstaller and including an file icon. However it only shows when I have the folder option set to small icons (I'm using Windows 7).

Do I need to specify icons for when the folder option is set to display medium or large icons, and if so how?

The ico file I have at the moment is 128 x 128 px if that's important.

You need to build your ico file so that it embeds all sizes you wish to display. Download a free icon that has all sizes to test with, like this one.

http://www.iconfinder.com/icondetails/17840/128/ark_arrow_box_download_dropbox_kde_package_icon

Then you can use the free program called icofx to edit your own ico file and generate the different sizes you need.

Good Luck! Let me know if this helps!

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.

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