@main_window.setter
def main_window(self, window):
    self._main_window = window
    window.app = self
@main_window.setter
def main_window(self, window):
    self._main_window = window
    window.app = self