python - What path to enter in PyQt QIcon.setThemeSearchPaths() in pyqt on win7? -
as written in docs edit setthemesearchpaths()
current code:
if __name__ == "__main__": app = qtgui.qapplication([]) path in qtgui.qicon.themesearchpaths(): print "%s/%s" % (path, qtgui.qicon.themename())
it prints out:
c:/python27/icons/ :/icons/
and no icons found. ask path have pass input argument in function setthemesearchpaths()
on win7?
as found out icons should on path/file:
c:\windows\system32\imageres.dll
but if input path .dll
file nothing happens?
windows doesn't have icon themes. qt uses freedesktop icon specification.
using default paths, either extract icon theme c:/python27/icons/
or embed qt resource.
you can try download faenza icons. should end file structure like:
icons/<theme name>/index.theme icons/<theme name>/apps/ icons/<theme name>/actions/ ...
Comments
Post a Comment