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'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.
Currently you're probably better off to just use a custom 16x16 image for the taskbar. wxIcon isn't too smart on wxGTK and doesn't do any special size based selection for the wx.TaskbarIcon.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!