add Line constructor

This commit is contained in:
Josh Holtrop 2011-03-28 15:30:26 -04:00
parent d33d9f0f1a
commit f1282e6cb6

View File

@ -1,3 +1,7 @@
class Line(Shape):
pass
def __init__(self, x0, y0, x1, y1):
self.x0 = x0
self.y0 = y0
self.x1 = x1
self.y1 = y1