def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def clear(self):
    for unused_ in range(len(self._items)):
      self.remove_item(self._items[0])