[wxGTK] task bar icon size

roee shlomo roee88 at gmail.com
Mon Oct 1 12:40:09 PDT 2007


Just discovered wx.IconBundle :-)

Almost perfect, but:
when using wx.IconBundle.AddIconFromFile to load an .ico file, it loads all
the icon layers (so I can use wx.IconBundle.GetIcon(size) for all supported
sizes).
The problem is - it doesn't handle transparacy at all.
when using wx.IconBundle.AddIcon it handles transparacy fine, but only loads
one layer.

I hope i'm in the right direction :D

Thanks,
Roee.

On 10/1/07, roee shlomo <roee88 at gmail.com> wrote:
>
> Hi all,
>
> I'm testing my application on Ubuntu Feisty and I have a problem with the
> icon size in wx.TaskBarIcon.
>
> I have an instance of wx.Icon which I use as both application icon, and as
> the first parameter for wx.TaskBarIcon.SetIcon.
>
> I have tried:
> 1. wx.Icon(iconPath, wx.BITMAP_TYPE_ICO) where iconPath points to windows
> .ico file with support for 16x16, 32x32, 48x48.
> 2. wx.Icon(iconPath, wx.BITMAP_TYPE_PNG) where iconPath points to .png
> file with size of 48x48.
>
> As application icon, it works great (icon size changes to the appropriate
> size).
> As tray icon it ALWAYS uses 48x48 (on windows it works well).
>
> I know I can create a small 16x16 png icon just for the system tray, but I
> saw many apps using a 48x48 png file and their task bar icon looks great.
>
> Would appreciate any hint :)
> Thanks,
> Roee.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200710=
01/35de25d5/attachment.htm


More information about the wxpython-users mailing list