Am 09.09.2011 07:47 schrieb Oliver:
class Container(object):
"""Container to store a number of non-overlapping rectangles."""
def __init__(self, xsize=1200, ysize=800):
super(Container, self).__init__(xsize, ysize)
And this is the nonsense: Container derives from object and tries to call its superclass's constructor with 2 parameters - which won't work.
Write this as super(Container, self).__init__(). HTH, Thomas -- http://mail.python.org/mailman/listinfo/python-list
