def apply_inherited_style(box):
    if not box.parent:
        return
    d = box.parent.__dict__
    for attr in _inherited_properties:
        if attr in d:
            setattr(box, attr, d[attr])
Allow the box to inherit inherited properties from its parent.
dataset/ETHPy150Open ardekantur/pyglet/contrib/layout/layout/properties.py/apply_inherited_style