Merge pull request #688 from mineo/resources-readme

resources/README: Move to Qt5 & Python 3
This commit is contained in:
Wieland Hoffmann
2017-04-08 10:16:18 +02:00

View File

@@ -3,15 +3,17 @@ Updating Resources
This directory contains all external resources, like icons, used by Picard.
Picard utilizes PyQt4 Resource System for using these resources in application. For more information about PyQt4 Resource System see this [documentation](http://pyqt.sourceforge.net/Docs/PyQt4/resources.html).
Picard utilizes the PyQt5 Resource System for using these resources in
application. For more information about the PyQt5 Resource System see this
[documentation](http://pyqt.sourceforge.net/Docs/PyQt5/resources.html).
For adding a new image into existing resources, follow these steps:
1. Add image file (like .png) into `resources/images/` and source file (like .svg) into `resources/img-src`.
2. Generate new .qrc file. This would automatically detect any changes in directory.
$ python2 makeqrc.py
$ python makeqrc.py
3. Create binary of all resources which will be used by Picard.
$ python2 compile.py
$ python compile.py