def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def closeEvent(self, event: QCloseEvent):
        settings.write("{}/geometry".format(self.__class__.__name__), self.saveGeometry())
        super().closeEvent(event)