def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def select_all(self, event=None):
        self.selection_range(0, END)
        return "break"