code: def setBendLength(self, x):
          
          if x != self.bend_length:
              self.bend_length = x
              self.refresh = True
docs: set bend length
  
          :param x: new bend length to be assigned, [m]
          :return: None