"Alan Gauld" <[EMAIL PROTECTED]> wrote
class Square: def __init__(self,p1,p2,p3,p4): self.points = [p1,p2,p3,p4] def draw(self): myTookKitDrawSquare(p1.x,p1.y, p1.col, p2.x,p2.y, p2.col, p3.x,p3.y, p3.col, p4.x,p4.y, p4.col)
Oops! The p1.x etc should of course have been self.points[0].x etc draw cannot use the pointparameters from init!
Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor