Thanks Wayne and Alan, Here is what I finally ended up with:
def newCoord(x, y, oldWidth, oldHeight, newWidth, newHeight): return( newWidth/2 + newWidth/oldWidth * x), (newHeight/2 - newHeight/oldHeight * y) for my earlier example, the old width and height would be 200, 200 respectively. Thanks!
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor