Exemple #1
0
 def _show_account_window(self) -> None:
     # pylint: disable=cyclic-import
     from bastd.ui.account.settings import AccountSettingsWindow
     self._save_state()
     ba.containerwidget(edit=self._root_widget, transition='out_left')
     ba.app.main_menu_window = (AccountSettingsWindow(
         origin_widget=self._gc_button).get_root_widget())
Exemple #2
0
    def _back(self) -> None:
        # pylint: disable=cyclic-import
        from bastd.ui.account.settings import AccountSettingsWindow
        self._save_state()
        ba.containerwidget(edit=self._root_widget,
                           transition=self._transition_out)
        if self._in_main_menu:
            ba.app.ui.set_main_menu_window(
                AccountSettingsWindow(transition='in_left').get_root_widget())

        # If we're being called up standalone, handle pause/resume ourself.
        else:
            ba.app.resume()