def handler():
            nonlocal called
            called += 1
            raise ValueError("yeah sync")
def closeEvent(self, event: QCloseEvent):
        settings.write("{}/geometry".format(self.__class__.__name__), self.saveGeometry())
        super().closeEvent(event)