Differences between revisions 4 and 7 (spanning 3 versions)
Revision 4 as of 2004-01-30 11:51:27
Size: 606
Editor: 202
Comment:
Revision 7 as of 2004-02-24 14:41:24
Size: 1053
Editor: 213
Comment:
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
does the resource number refers to the icon index in the {{{.ico}}} file (if containing > 1 icons) -- dody wijaya does the resource number refers to the icon's index in the {{{.ico}}} file (if containing > 1 icons) ?
-- [mailto:dswsh@plasa.com dody wijaya]


'''How to add small and large icons'''

You must create ico file with two icons in one.
Your icon file must contain small ico (size: 16*16 pixels) and large ico (size: 32*32 pixels). For WindowsXP you probably may create a big ico (48*48) - but it's only for XP.
Almost all popular icon editors can create complex icon with small and large part in one.

Good luck! Alexander Belchenko (bialix@ukrpost.net)

Icons are added as icon_rsources

setup( 
    windows = [
        {
            "script": "with_gui.py",
            "icon_resources": [(1, "myicon.ico")]
        }
    ],
)

The same practice works as well for console and windows scripts. The resouce number does not seem to matter. Windows just takes the first existing icon.

/!\ if somebody knows how to add small and large icons, speak up...

Hm, doesn't the .ico file contain them?

does the resource number refers to the icon's index in the .ico file (if containing > 1 icons) ? -- [mailto:dswsh@plasa.com dody wijaya]

How to add small and large icons

You must create ico file with two icons in one. Your icon file must contain small ico (size: 16*16 pixels) and large ico (size: 32*32 pixels). For WindowsXP you probably may create a big ico (48*48) - but it's only for XP. Almost all popular icon editors can create complex icon with small and large part in one.

Good luck! Alexander Belchenko (bialix@ukrpost.net)

CustomIcons (last edited 2011-08-05 21:58:17 by SunjayVarma)