def __setstate__(self, state):
        """Set the current state of the object from the serialized version.
        Works inplace. See ``__getstate__`` to get serialized version and
        ``from_state`` to create a new object."""
        self.fs.__setstate__(state['local'])
        self.url.__setstate__(state['remote'])
        self.visible = state.get('visible', True)
        if self.visible:
            self.tabs.active = state['active']
        return self
def __setstate__ ( self , state ) : self . fs . __setstate__ ( state [ 'local' ] ) self . url . __setstate__ ( state [ 'remote' ] ) self . visible = state . get ( 'visible' , True ) if self . visible : self . tabs . active = state [ 'active' ] return self
Set the current state of the object from the serialized version.
        Works inplace. See ``__getstate__`` to get serialized version and
        ``from_state`` to create a new object.