[Qgis-developer] how to call qgis signal?
Ricardo Filipe Soares Garcia da
ricardo.garcia.silva at gmail.com
Tue Aug 17 07:29:37 EDT 2010
I am trying to call the layerWasAdded and layerWillBeRemoved signals
that are emmited by the mapLayerRegistry.instance() object, but I'm
getting no luck.
I am hoping to toggle my plugin on and off based on the user having
any vector layer of type 'line' loaded on the map canvas.
I've read , that says that the signal definition must match exactly
with the signature of the function... I think that is what I am doing,
but I'm not sure.
I am trying:
def __init__(self, iface):
#...some other code
def toggle_plugin_availability(self, arg):
if len(self._get_loaded_layers()["vectorLine"]) == 0:
 - http://blog.qgis.org/node/102
___________________________ ___ __
Ricardo Garcia Silva
More information about the Qgis-developer