def calcXDistance(self, pt1, pt2):
        """ Calculate the X distance between two points """

        # The points should be given as (x,y) tuples
        self.validatePoint(pt1)
        self.validatePoint(pt2)
        
        x1, y1 = pt1
        x2, y2 = pt2

        return abs(x1-x2)
 Calculate the X distance between two points 
recipes/Python/496884_Amaze__objectoriented_maze_generatorsolver/recipe-496884.py