def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
def closeEvent(self, event: QCloseEvent):
        settings.write("{}/geometry".format(self.__class__.__name__), self.saveGeometry())
        super().closeEvent(event)