(self)
This function deletes both ends (if they exist) and the connection
        itself.
This function deletes both ends (if they exist) and the connection
        itself.
This function deletes both ends ( if they exist ) and the connection itself .
def delete_connection(self):
        """ This function deletes both ends (if they exist) and the connection
        itself. """
        self.parent.remove_widget(self)  # Self-destruct
        self.remove_info()
        if self.start:
            self._unbind_pin(self.start)
            self.start.on_connection_delete(self)
        if self.end:
            self._unbind_pin(self.end)
            self.end.on_connection_delete(self)
def delete_connection ( self ) : self . parent . remove_widget ( self ) # Self-destruct self . remove_info ( ) if self . start : self . _unbind_pin ( self . start ) self . start . on_connection_delete ( self ) if self . end : self . _unbind_pin ( self . end ) self . end . on_connection_delete ( self )