[Qgis-user] Several icons for plugin

Bo Victor Thomsen bo.victor.thomsen at gmail.com
Fri Aug 30 01:59:40 PDT 2019


Hi Christoph -

The resources.py file is generated (transpiled) from resources.qrc using 
a tool called pyrcc5.

This tool *should* be called from pb_tools. However if your path command 
doesn't contain the directory for pyrcc5.py. It won't work.

A workaround. Create a file with these commands

I'm showing it as a bitmap, because 20.000 virus scanners would howl if 
I was sending it as actual dos commands.

The command file will create a new resources.py overwriting the existing 
resources.py file using the contents of resources.qrc

You can remove the "pause" commands

-- 
Med venlig hilsen / Kind regards

Bo Victor Thomsen

Den 30-08-2019 kl. 09:25 skrev Christoph Jung:

> Hello everybody,
>
> I have a problem with the integration of additional icons in a plugin besides the main icon for it. I created a first version with only one menu entry and only one icon. Now in a new version I added a new function as a second menu entry and processing algorithm. These two things should have a new icon. I added relative paths to this new icon in a similar way like in the first version with only one icon. But the new icon does not appear. The relative path is correct, I checked it first ^^ the new icon will be also deployed with the pb_tool (I added it in the config file). I am not sure about the function of the resource.py file. Should I add the second icon into this file with the command pb_tools compile (and how do I do it, I added a new entry in the resources xml-file, cleaned and compiled it new, but it does not work too)?
>
> Sincerely,
> Christoph
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190830/211e71db/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jlofnnfalekkabhm.png
Type: image/png
Size: 26651 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190830/211e71db/attachment-0001.png>


More information about the Qgis-user mailing list