original_docstring: Activated when user clicks on the canvas. Gets coordinates, draws
          them on the map and adds to the list of points.
docstring: Activated when user clicks on the canvas. Gets coordinates, draws
  them on the map and adds to the list of points.
docstring_tokens: Activated when user clicks on the canvas . Gets coordinates draws them on the map and adds to the list of points .
code: def canvasReleaseEvent(self, e):
          """Activated when user clicks on the canvas. Gets coordinates, draws
          them on the map and adds to the list of points."""
          if self.double_click_flag:
              self.double_click_flag = False
              return
  
          # if the finished flag is activated, the canvas will be reset
          # for a new polygon
          if self.finished:
              self.reset()
              self.finished = False
  
          self.click_point = self.toMapCoordinates(e.pos())
  
          self.rubberBand.addPoint(self.click_point, True)
          self.points.append(self.click_point)
          self.rubberBand.show()
code_tokens: def canvasReleaseEvent ( self , e ) : if self . double_click_flag : self . double_click_flag = False return if self . finished : self . reset ( ) self . finished = False self . click_point = self . toMapCoordinates ( e . pos ( ) ) self . rubberBand . addPoint ( self . click_point , True ) self . points . append ( self . click_point ) self . rubberBand . show ( )
short_docstring: Activated when user clicks on the canvas.
short_docstring_tokens: Activated when user clicks on the canvas .
comment: """Activated when user clicks on the canvas. Gets coordinates, draws
          them on the map and adds to the list of points."""$SEP$# if the finished flag is activated, the canvas will be reset$SEP$# for a new polygon