Beispiel #1
0
 def _do_back(self) -> None:
     from bastd.ui.settings.allsettings import AllSettingsWindow
     self._save_state()
     ba.containerwidget(edit=self._root_widget,
                        transition=self._transition_out)
     ba.app.ui.set_main_menu_window(
         AllSettingsWindow(transition='in_left').get_root_widget())
Beispiel #2
0
 def _settings(self) -> None:
     # pylint: disable=cyclic-import
     from bastd.ui.settings.allsettings import AllSettingsWindow
     self._save_state()
     ba.containerwidget(edit=self._root_widget, transition='out_left')
     ba.app.main_menu_window = (AllSettingsWindow(
         origin_widget=self._settings_button).get_root_widget())