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

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -