[Qgis-user] Several icons for plugin

Christoph Jung jagodki.cj at gmail.com
Sat Aug 31 03:29:24 PDT 2019


Hello Bo,

Thank you for your answer. I played a bit with the pb_tool and pyrcc and reinstalled pb_tool. Now it works, but I cannot say exactly why ^^

Sincerely,
Christoph

> Am 30.08.2019 um 10:59 schrieb Bo Victor Thomsen <bo.victor.thomsen at gmail.com>:
> 
> 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
> 
> <jlofnnfalekkabhm.png>
> 
> 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
> _______________________________________________
> 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/20190831/e7092e98/attachment.html>


More information about the Qgis-user mailing list