KDE and wxFileType.GetIcon()

Hello,

Does anyone know if it is possible to get the file-type icons from
KDE?

When I use the following code:

fileType = wxTheMimeTypesManager.GetFileTypeFromExtension('jpg')
icon = fileType.GetIcon()

icon is None and not an icon object.

Regards,
Remy Cool

Remy C. Cool wrote:

Hello,

Does anyone know if it is possible to get the file-type icons from KDE?

When I use the following code:

fileType = wxTheMimeTypesManager.GetFileTypeFromExtension('jpg')
icon = fileType.GetIcon()

icon is None and not an icon object.

It's suposed to use info in the .mailcap and .mime.types files, so it would need to be defined there. I think in 2.5 it also looks at the GNOME and KDE files, but I don't know any details.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!