Пример #1
0
 def __init__(self, iface):
     canvas = iface.mapCanvas()
     super(MapSwipeTool, self).__init__(canvas)
     self.view = iface.layerTreeView()
     self.msgBar = iface.messageBar()
     self.swipe = SwipeMap(canvas)
     self.checkDirection = self.hasSwipe = self.disabledSwipe = None
     self.firstPoint = QPoint()
     self.cursorV = QCursor(Qt.SplitVCursor)
     self.cursorH = QCursor(Qt.SplitHCursor)