Differences between revisions 5 and 11 (spanning 6 versions)
Revision 5 as of 2004-01-30 11:52:23
Size: 629
Editor: 202
Comment:
Revision 11 as of 2004-06-16 11:41:16
Size: 4290
Editor: 61
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.
Line 20: Line 20:
[[http://liuhecai.100free.com 六合彩]]
[[http://liuhecai.100free.com/liuhecai1.htm 外围玩法]]
[[http://liuhecai.100free.com/liuhecai2.htm 奖金分配]]
[[http://liuhecai.100free.com/liuhecai3.htm 獎金領取]]
[[http://liuhecai.100free.com/liuhecai4.htm 六合彩简介]]
[[http://liuhecai.100free.com/liuhecai5.htm 马会简介]]
[[http://liuhecai.100free.com/liuhecai6.htm 合彩知识]]
[[http://liuhecai.100free.com/liuhecai7.htm 版权声明]]
[[http://liuhecai.100free.com/liuhecai8.htm 六合彩搅珠系统软件]]
[[http://liuhecai.100free.com/liuhecai9.htm 六合彩]]
[[http://liuhecai.100free.com/liuhecai10.htm 六合彩]]
[[http://liuhecai.hostrocket.com 六合彩]]
[[http://liuhecai.hostrocket.com/liuhecai1.htm 外围玩法]]
[[http://liuhecai.hostrocket.com/liuhecai2.htm 奖金分配]]
[[http://liuhecai.hostrocket.com/liuhecai3.htm 獎金領取]]
[[http://liuhecai.hostrocket.com/liuhecai4.htm 六合彩简介]]
[[http://liuhecai.hostrocket.com/liuhecai5.htm 马会简介]]
[[http://liuhecai.hostrocket.com/liuhecai6.htm 合彩知识]]
[[http://liuhecai.hostrocket.com/liuhecai7.htm 版权声明]]
[[http://liuhecai.hostrocket.com/liuhecai8.htm 六合彩搅珠系统软件]]
[[http://liuhecai.hostrocket.com/liuhecai9.htm 六合彩]]
[[http://liuhecai.hostrocket.com/liuhecai10.htm 六合彩]]
[[http://www.angelfire.com/un/liuhecai 六合彩]]
[[http://www.angelfire.com/un/liuhecai/liuhecai1.htm 外围玩法]]
[[http://www.angelfire.com/un/liuhecai/liuhecai2.htm 奖金分配]]
[[http://www.angelfire.com/un/liuhecai/liuhecai3.htm 獎金領取]]
[[http://www.angelfire.com/un/liuhecai/liuhecai4.htm 六合彩简介]]
[[http://www.angelfire.com/un/liuhecai/liuhecai5.htm 马会简介]]
[[http://www.angelfire.com/un/liuhecai/liuhecai6.htm 合彩知识]]
[[http://www.angelfire.com/un/liuhecai/liuhecai7.htm 版权声明]]
[[http://www.angelfire.com/un/liuhecai/liuhecai8.htm 六合彩搅珠系统软件]]
[[http://www.angelfire.com/un/liuhecai/liuhecai9.htm 六合彩]]
[[http://www.angelfire.com/un/liuhecai/liuhecai10.htm 六合彩]]
Line 22: Line 55:
-- [dswsh@plasa.com dody wijaya] -- [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. For instance, [http://www.x2studios.com/index.php?page=products&id=11 LiquidIcon] is a freeware icon editor that lets you combine multiple ico files of different sizes and bit-depths into a single ico file.

Now I've managed to give an icon to my program, but when the program starts, a standard Windows icon shows up in the window's title bar and in the task bar button (instead of my custom icon). Is there a way I can fix that myself, or is that a current limitation of py2exe?

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? http://liuhecai.100free.com 六合彩 http://liuhecai.100free.com/liuhecai1.htm 外围玩法 http://liuhecai.100free.com/liuhecai2.htm 奖金分配 http://liuhecai.100free.com/liuhecai3.htm 獎金領取 http://liuhecai.100free.com/liuhecai4.htm 六合彩简介 http://liuhecai.100free.com/liuhecai5.htm 马会简介 http://liuhecai.100free.com/liuhecai6.htm 合彩知识 http://liuhecai.100free.com/liuhecai7.htm 版权声明 http://liuhecai.100free.com/liuhecai8.htm 六合彩搅珠系统软件 http://liuhecai.100free.com/liuhecai9.htm 六合彩 http://liuhecai.100free.com/liuhecai10.htm 六合彩 http://liuhecai.hostrocket.com 六合彩 http://liuhecai.hostrocket.com/liuhecai1.htm 外围玩法 http://liuhecai.hostrocket.com/liuhecai2.htm 奖金分配 http://liuhecai.hostrocket.com/liuhecai3.htm 獎金領取 http://liuhecai.hostrocket.com/liuhecai4.htm 六合彩简介 http://liuhecai.hostrocket.com/liuhecai5.htm 马会简介 http://liuhecai.hostrocket.com/liuhecai6.htm 合彩知识 http://liuhecai.hostrocket.com/liuhecai7.htm 版权声明 http://liuhecai.hostrocket.com/liuhecai8.htm 六合彩搅珠系统软件 http://liuhecai.hostrocket.com/liuhecai9.htm 六合彩 http://liuhecai.hostrocket.com/liuhecai10.htm 六合彩 http://www.angelfire.com/un/liuhecai 六合彩 http://www.angelfire.com/un/liuhecai/liuhecai1.htm 外围玩法 http://www.angelfire.com/un/liuhecai/liuhecai2.htm 奖金分配 http://www.angelfire.com/un/liuhecai/liuhecai3.htm 獎金領取 http://www.angelfire.com/un/liuhecai/liuhecai4.htm 六合彩简介 http://www.angelfire.com/un/liuhecai/liuhecai5.htm 马会简介 http://www.angelfire.com/un/liuhecai/liuhecai6.htm 合彩知识 http://www.angelfire.com/un/liuhecai/liuhecai7.htm 版权声明 http://www.angelfire.com/un/liuhecai/liuhecai8.htm 六合彩搅珠系统软件 http://www.angelfire.com/un/liuhecai/liuhecai9.htm 六合彩 http://www.angelfire.com/un/liuhecai/liuhecai10.htm 六合彩

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. For instance, [http://www.x2studios.com/index.php?page=products&id=11 LiquidIcon] is a freeware icon editor that lets you combine multiple ico files of different sizes and bit-depths into a single ico file.

Now I've managed to give an icon to my program, but when the program starts, a standard Windows icon shows up in the window's title bar and in the task bar button (instead of my custom icon). Is there a way I can fix that myself, or is that a current limitation of py2exe?

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