Hi

I'm working out a python plugin and have now the following problem.
I try to connect to the editingStarted() signal of QgsVectorLayer. Here is my 
relevant code snippet:

def toggle(self)
  mc = self.iface.mapCanvas()
  layer = mc.currentLayer()

  QObject.connect(layer,SIGNAL("editingStarted()"),self.test)

The problem is that the error console keeps me telling that "argument 1 of 
QObject.connect() has an invalid type".  A print of layer gives 
<qgis.core.QgsVectorLayer object at ...> so I guess my layer is a 
QgsVectorLayer. 

Anybody an idea what I'm doing wrong?

Thanks and regards
Cédric



mit freundlichen Grüssen



Cédric 
Möri

GIS-Informatiker


-- 


Kanton Solothurn

Bau- und 
Justizdepartement

Amt für Geoinformation

Rötistrasse 4

4501 
Solothurn

Telefon +41 (0)32 627 24 75

Telefax +41 (0)32 627 22 
14

mailto:[EMAIL PROTECTED]

http://www.agi.so.ch
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to