code: 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])
docs: Restores the state copied with _copy()