[wxPython-users] [wxGTK] task bar icon size
Robin Dunn
robin at alldunn.com
Mon Oct 1 12:59:29 PDT 2007
roee shlomo 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.
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!
More information about the wxpython-users
mailing list