code: def setReadOnly(self, state):
          
          self._readOnly = state
          
          for editor in self.editors():
              editor.setReadOnly(state)
docs: Sets whether or not this edit is read only.
          
          :param      state | <bool>