(self, touch: MotionEvent)
On touch down on connection means we are modifying an already
            existing connection, not creating a new one.
On touch down on connection means we are modifying an already
            existing connection, not creating a new one.
On touch down on connection means we are modifying an already existing connection not creating a new one .
def on_touch_down(self, touch: MotionEvent) -> bool:
        """ On touch down on connection means we are modifying an already
            existing connection, not creating a new one. """
        # TODO: remove start check?
        if self.start and self.start.collide_point(*touch.pos):
            self.forward = False
            # Remove start edge
            self._unbind_pin(self.start)
            self.start.on_connection_delete(self)
            self.start = None
            # This signals that we are dragging a connection
            touch.ud['cur_line'] = self
            Window.add_widget(self.info)
            return True
        elif self.end and self.end.collide_point(*touch.pos):
            # Same as before but with the other edge
            self.forward = True
            self._unbind_pin(self.end)
            self.end.on_connection_delete(self)
            self.end = None
            touch.ud['cur_line'] = self
            Window.add_widget(self.info)
            return True
        else:
            return False
def on_touch_down ( self , touch : MotionEvent ) -> bool : # TODO: remove start check? if self . start and self . start . collide_point ( * touch . pos ) : self . forward = False # Remove start edge self . _unbind_pin ( self . start ) self . start . on_connection_delete ( self ) self . start = None # This signals that we are dragging a connection touch . ud [ 'cur_line' ] = self Window . add_widget ( self . info ) return True elif self . end and self . end . collide_point ( * touch . pos ) : # Same as before but with the other edge self . forward = True self . _unbind_pin ( self . end ) self . end . on_connection_delete ( self ) self . end = None touch . ud [ 'cur_line' ] = self Window . add_widget ( self . info ) return True else : return False