Changeset - e16b8ca470d8
[Not reviewed]
default
0 1 0
drewp - 21 years ago 2004-05-31 07:31:32

distance calc change
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
flax/tracker
Show inline comments
 
@@ -19,7 +19,7 @@ import Tkinter as tk
 
defaultfont="arial 8"
 

	
 
def pairdist(pair1,pair2):
 
    return sqrt((pair1[0]-pair2[0])**2+(pair1[1]-pair2[1])**2)
 
    return pair1.dist(pair2)
 

	
 
def canvashighlighter(canvas,obj,attribute,normalval,highlightval):
 
    """creates bindings on a canvas obj that make attribute go
0 comments (0 inline, 0 general)