code: def canvasReleaseEvent(self, e):
          
          _ = e  # NOQA
          self.is_emitting_point = False
          self.rectangle_created.emit()
docs: Handle canvas release events has finished capturing e.
  
          :param e: A Qt event object.
          :type: QEvent