AW: Re: [Qgis-developer] Re:CAD Tools: icons not visible
Ziegler Stefan
Stefan.Ziegler at bd.so.ch
Sat Feb 19 14:58:06 EST 2011
Hi Giuseppe
thanks for your investigation! I updated the code. Please try v0.5.2.
regards
Stefan
-----Ursprüngliche Nachricht-----
Von: Giuseppe Sucameli [mailto:sucameli at faunalia.it]
Gesendet am: Mittwoch, 16. Februar 2011 19:33
An: Ziegler Stefan
Cc: Paolo Cavallini; qgis-developer at lists.osgeo.org
Betreff: Re: [Qgis-developer] Re:CAD Tools: icons not visible
Hi all,
today it happens on my Ubuntu too!
Here the fix:
1. move the resources.qrc into the main plugin dir (cadtools/)
2. edit paths to the icons in resources.qrc fitting them to the new
position
3. generate the resources.py: pyrcc4 -o resources.py resources.qrc
4. change all the instances of "import resources" to "from cadtools
import resources"
And to avoid unnecessary path on the enviroment path variable:
1. open cadtools.py in editing
2. remove the following line:
sys.path.append( os.path.abspath( os.path.dirname( __file__) +
'/tools' ) )
3. change all the tool import from (e.g lineintersectiontool):
from lineintersectiontool import LineIntersectionTool
to
from tools.lineintersectiontool import LineIntersectionTool
except "from cadtoolsaboutgui import CadToolsAboutGui"
4. create an empty tools/__init__.py file
And if you have time,
remove the unused cadsettings.ui and ui_cadsettings.py from the main
plugin dir
Now all should work ok!
Cheers.
On Sat, Dec 25, 2010 at 10:35 AM, aperi2007 < aperi2007 at gmail.com>
wrote:
Il 25/12/2010 10:31, Paolo Cavallini ha scritto:
Il giorno sab, 25/12/2010 alle 10.14 +0100, aperi2007 ha
scritto:
Can anybody see the icons in other 64bit installations?
All the best.
In Win7 - 64bit installation from os4geo (qgis-dev)
I see them.
Thanks - is this a real 64bit?
All the best.
The win7 I'm using is the 64bit version . Is a really 64bit
version.
But qgis-dev is the 32 bit version (from osgeo4 installer)
Andrea.
_______________________________________________
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
--
Giuseppe Sucameli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110219/5f72c5a0/attachment.html
More information about the Qgis-developer
mailing list