(self, state)
Recursively sets state on this layer and all sublayers.
Recursively sets state on this layer and all sublayers.
Recursively sets state on this layer and all sublayers .
def state(self, state):
    """Recursively sets state on this layer and all sublayers."""
    if isinstance(state, dict) and state == base.GET_STATE_FROM_CACHE:
      return
    self._state = state
    self.sublayer.state = state[1]
def state ( self , state ) : if isinstance ( state , dict ) and state == base . GET_STATE_FROM_CACHE : return self . _state = state self . sublayer . state = state [ 1 ]