Is getCenter a function?  If so, you need to invoke distance using:
    dist = self.distance( n.getCenter(), newElement )

Of course, that is assuming that newElement is a local variable of type
list/tuple/etc.

-- Paul

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to