def __init__(self, parent, border=None, color=None, bgcolor=None,
            active_bgcolor=None, is_active=False, width='100%', **kw):
        self.is_active = is_active

        # default styling and width to parent settings
        n = len(parent.children)
        table = parent.parent
        if color is None:
            color = table.color
        if bgcolor is None:
            bgcolor = (table.bgcolor, table.alt_bgcolor)[2%n]
        if active_bgcolor is None:
            self.active_bgcolor = table.active_bgcolor
        else:
            self.active_bgcolor = util.parse_color(active_bgcolor)

        font_size = parent.getStyle().font_size
        kw['y'] = n * font_size
        kw['height'] = font_size
        super(Row, self).__init__(parent, border=border, bgcolor=bgcolor,
            width=width, **kw)
        self.base_bgcolor = bgcolor
dataset/ETHPy150Open ardekantur/pyglet/contrib/wydget/wydget/widgets/table.py/Row.__init__/swapped operands of `%`