예제 #1
0
파일: wrappers.py 프로젝트: smagic20/QGIS
 def setLayer(self, layer):
     context = dataobjects.createContext()
     if isinstance(layer, str):
         layer = QgsProcessingUtils.mapLayerFromString(
             _resolveLayers(layer), context)
     self._layer = layer
     self.refreshItems()
예제 #2
0
 def setLayer(self, layer):
     if isinstance(layer, str):
         layer = dataobjects.getObjectFromUri(_resolveLayers(layer))
     self.widget.setLayer(layer)
예제 #3
0
 def setLayer(self, layer):
     if isinstance(layer, str):
         layer = dataobjects.getObjectFromUri(_resolveLayers(layer))
     self._layer = layer
     self.refreshItems()
예제 #4
0
 def setLayer(self, layer):
     if isinstance(layer, str):
         layer = dataobjects.getObjectFromUri(_resolveLayers(layer))
     self._layer = layer
     self.refreshItems()
예제 #5
0
 def setLayer(self, layer):
     if isinstance(layer, str):
         layer = dataobjects.getObjectFromUri(_resolveLayers(layer))
     self.widget.setLayer(layer)