Differences between revisions 8 and 9
Revision 8 as of 2004-03-21 21:42:51
Size: 998
Editor: 213
Comment:
Revision 9 as of 2004-05-05 00:53:55
Size: 1000
Editor: 81-174-201-37
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Icons are added as {{{icon_rsources}}} Icons are added as {{{icon_resources}}}
Line 15: Line 15:
The resouce number does not seem to matter. Windows just takes the first existing icon. The resource number does not seem to matter. Windows just takes the first existing icon.

Icons are added as icon_resources

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

The same practice works as well for console and windows scripts. The resource 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.

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