def deactivate(self): self.point_1 = None self.point_2 = None # Call parent method ParentMapTool.deactivate(self) self.iface.setActiveLayer(self.current_layer)
def deactivate(self): # Call parent method ParentMapTool.deactivate(self) if self.current_layer is not None: self.iface.setActiveLayer(self.current_layer) action = self.iface.mainWindow().findChild(QAction, 'map_tool_open_visit') action.setChecked(False)
def deactivate(self): # Call parent method try: if self.current_layer: self.iface.setActiveLayer(self.current_layer) except: pass finally: ParentMapTool.deactivate(self)
def deactivate(self): """ Called when map tool is being deactivated """ # Call parent method ParentMapTool.deactivate(self) try: self.rubber_band.reset(QGis.Line) except AttributeError: pass
def deactivate(self): """ Called when map tool is being deactivated """ # Call parent method ParentMapTool.deactivate(self) # Restore previous active layer if self.active_layer: self.iface.setActiveLayer(self.active_layer) try: self.rubber_band.reset(QGis.Line) except AttributeError: pass
def deactivate(self): # Call parent method ParentMapTool.deactivate(self)
def deactivate(self): # Call parent method ParentMapTool.deactivate(self) self.iface.setActiveLayer(self.current_layer)
def deactivate(self): self.vertex_marker.hide() # Call parent method ParentMapTool.deactivate(self)