lib/shapes/Path.py
def translate(self, x=0.0, y=0.0):
		"""Translates the path by the given amounts.

		@param x: The amount to translate in the x-direction
		@param y: The amount to translate in the y-direction
		"""

		newcoords = []
		for oldx, oldy in self.coordinates:
			newcoords.append(Coordinate(x + oldx, y + oldy))
		self.coordinates = tuple(newcoords)
Translates the path by the given amounts.

		@param x: The amount to translate in the x-direction
		@param y: The amount to translate in the y-direction
		
Translates the path by the given amounts.
Translates the path by the given amounts .
def translate(self, x=0.0, y=0.0):
		newcoords = []
		for oldx, oldy in self.coordinates:
			newcoords.append(Coordinate(x + oldx, y + oldy))
		self.coordinates = tuple(newcoords)
def translate ( self , x = 0.0 , y = 0.0 ) : newcoords = [ ] for oldx , oldy in self . coordinates : newcoords . append ( Coordinate ( x + oldx , y + oldy ) ) self . coordinates = tuple ( newcoords )
Translates the path by the given amounts.
Translates the path by the given amounts .
"""Translates the path by the given amounts.

		@param x: The amount to translate in the x-direction
		@param y: The amount to translate in the y-direction
		"""
self
x
The amount to translate in the x-direction
The amount to translate in the x - direction
y
The amount to translate in the y-direction
The amount to translate in the y - direction