def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def closeEvent(self, event: QCloseEvent):
        settings.write("{}/geometry".format(self.__class__.__name__), self.saveGeometry())
        super().closeEvent(event)