numeric
The index into the layer array of the window to which layer belongs (i.e. window.layers). Layer indices start at 1.
This element is read-only and cannot be redefined.
Find the index of the vector layer which contains the group streets.
layer t = mywin.vector_layer(streets) tell t.index
Note: this is an index into mywin.layers not mywin.vector_layers.