def _on_get_more_tickets_press(self) -> None: from bastd.ui import account from bastd.ui import getcurrency if _ba.get_account_state() != 'signed_in': account.show_sign_in_prompt() return getcurrency.GetCurrencyWindow(modal=True).get_root_widget()
def _on_get_tickets_press(self) -> None: if self._waiting_for_start_stop_response: return # Bring up get-tickets window and then kill ourself (we're on the # overlay layer so we'd show up above it). getcurrency.GetCurrencyWindow(modal=True, origin_widget=self._get_tickets_button)
def _on_get_tickets_press(self) -> None: from bastd.ui import getcurrency # If we're already entering, ignore presses. if self._entering: return # Bring up get-tickets window and then kill ourself (we're on the # overlay layer so we'd show up above it). getcurrency.GetCurrencyWindow(modal=True, origin_widget=self._get_tickets_button) self._transition_out()
def _on_get_more_tickets_press(self) -> None: # pylint: disable=cyclic-import from bastd.ui import account from bastd.ui import getcurrency if _ba.get_account_state() != 'signed_in': account.show_sign_in_prompt() return self._save_state() ba.containerwidget(edit=self._root_widget, transition='out_left') window = getcurrency.GetCurrencyWindow( from_modal_store=self._modal, store_back_location=self._back_location).get_root_widget() if not self._modal: ba.app.main_menu_window = window