lib/shapes/ShapeGroup.py
def width(self):
		"""The width of the entire group."""

		maxcoord = None
		maxwidth = None
		mincoord = self.shapes[0].position.x
		for shape in self.shapes:
			if float(shape.position.x) < mincoord:
				mincoord = float(shape.position.x)

			if float(shape.position.x) >= maxcoord:
				maxcoord = float(shape.position.x)
				if float(shape.width) > maxwidth:
					maxwidth = float(shape.width)

		return maxcoord + maxwidth - mincoord
The width of the entire group.
The width of the entire group.
The width of the entire group .
def width(self):
		maxcoord = None
		maxwidth = None
		mincoord = self.shapes[0].position.x
		for shape in self.shapes:
			if float(shape.position.x) < mincoord:
				mincoord = float(shape.position.x)
			if float(shape.position.x) >= maxcoord:
				maxcoord = float(shape.position.x)
				if float(shape.width) > maxwidth:
					maxwidth = float(shape.width)
		return maxcoord + maxwidth - mincoord
def width ( self ) : maxcoord = None maxwidth = None mincoord = self . shapes [ 0 ] . position . x for shape in self . shapes : if float ( shape . position . x ) < mincoord : mincoord = float ( shape . position . x ) if float ( shape . position . x ) >= maxcoord : maxcoord = float ( shape . position . x ) if float ( shape . width ) > maxwidth : maxwidth = float ( shape . width ) return maxcoord + maxwidth - mincoord
The width of the entire group.
The width of the entire group .
"""The width of the entire group."""
self