Skip to content
Snippets Groups Projects
Commit 9d09eb80 authored by inso's avatar inso Committed by GitHub
Browse files

Update plugin_development.md

parent e1251e84
No related branches found
No related tags found
No related merge requests found
...@@ -49,13 +49,15 @@ To build the plugin, you need : ...@@ -49,13 +49,15 @@ To build the plugin, you need :
### To generate resources (images, qrc, ...) ### To generate resources (images, qrc, ...)
Generating resources uses [pyrcc5](http://pyqt.sourceforge.net/Docs/PyQt5/resources.html). Generating resources uses [pyrcc5](http://pyqt.sourceforge.net/Docs/PyQt5/resources.html).
Generating designer ui files uses [pyuic5](http://pyqt.sourceforge.net/Docs/PyQt5/designer.html).
To help you generate your resources, you should copy the `gen_resources.py` file from sakia sources and configure the To help you generate your resources, you should copy the `gen_resources.py` file from sakia sources and configure the
variable `gen_resources`. Replace `'src'` by the name of your plugin package. variable `gen_resources`. Replace `'src'` by the name of your plugin package.
### To import your resources in your code ### To import your resources in your code
The generation of the resources build the following python files : The generation of the resources builds the following python files :
- `filename.ui` -> `filename_uic.py` - `filename.ui` -> `filename_uic.py`
- `filename.qrc` -> `filename_rc.py` - `filename.qrc` -> `filename_rc.py`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment