PostGIS Raster : Extending PostgreSQL for The Support of ... - CoDE
PostGIS Raster : Extending PostgreSQL for The Support of ... - CoDE
PostGIS Raster : Extending PostgreSQL for The Support of ... - CoDE
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
if hasattr(self.iface, "addPluginTo<strong>Raster</strong>Menu"):<br />
# Remove action from <strong>Raster</strong> toolbar and menu<br />
self.iface.removePlugin<strong>Raster</strong>Menu("\&Test plugins",self.action)<br />
self.iface.remove<strong>Raster</strong>ToolBarIcon(self.action)<br />
else:<br />
# Remove the Plugin menu and toolbar<br />
self.iface.removePluginMenu("\&Test plugins",self.action)<br />
self.iface.removeToolBarIcon(self.action)\\<br />
def run(self):<br />
# Main code <strong>for</strong> all the actions describing the plugin<br />
print "TestPlugin: run called!"<br />
<strong>The</strong> functions that must exist are initGui() and unload(). <strong>The</strong>se functions are called when the<br />
plugin is loaded and unloaded.<br />
B.2.3 Resources.qrc<br />
In initGui(), an icon icon.png from resource file resources.qrc is used. <strong>The</strong> structure <strong>of</strong> this<br />
file is as follows:<br />
<br />
<br />
icon.png<br />
<br />
<br />
<strong>The</strong> pyrcc4 command will generate a Python file that will contain the resources:<br />
pyrcc4 -o resources.py resources.qrc<br />
91