wxArtProvider & Native Windows Icons.

182 views
Skip to first unread message

Ben Timby

unread,
Dec 9, 2010, 9:21:37 AM12/9/10
to wxpytho...@googlegroups.com
I am confused about wx.Artprovider in 2.8.11. ON Linux is returns the
native folder icon using:

--
wx.ArtProvider.GetBitmap(wx.ART_FOLDER, wx.ART_TOOLBAR, (width, height))
--

This does not work on Windows, I get a default icon that must be part
of wx. However, getting the folder icon using the win32api is easy:

--
import win32api
shell32 = win32api.GetModuleFileName(win32api.GetModuleHandle('shell32.dll'))
folder = wx.BitmapFromIcon(wx.Icon(shell32 + ';3', wx.BITMAP_TYPE_ICO))
--

Why is this not supported on Windows? Does a later version support it?
Any patches?

Thanks.

Cody Precord

unread,
Dec 9, 2010, 11:05:42 AM12/9/10
to wxpytho...@googlegroups.com
Hi,

There is no native implementation for the ArtProvider in 2.8 so it
just uses the generic wx icons. Would be nice to have a native
implementation available.


Cody

Reply all
Reply to author
Forward
0 new messages