'Restores the state copied with _copy()'

def _restore(self, value):

    (items, subs) = value
    self.clear()
    for (key, value) in items:
        self[key] = value
        if (key in subs):
            value.sub_frames._restore(subs[key])
