@classmethod
    def fromXML(cls, element, parent):
        '''Create the object from the XML element and attach it to the parent.

        If scrollable then put all children loaded into a container frame.
        '''
        kw = loadxml.parseAttributes(element)
        obj = cls(parent, **kw)
        for child in element.getchildren():
            if child.tag == 'row':
                Row.fromXML(child, obj.contents)
            elif child.tag == 'heading':
                obj.heading = Heading.fromXML(child, obj)
                obj.heading.layout.layout()
            else:
                raise ValueError, child.tag%'unexpected tag %r'
        obj.contents.layout.layout()
        return obj
dataset/ETHPy150Open ardekantur/pyglet/contrib/wydget/wydget/widgets/table.py/Table.fromXML/swapped operands of `%`