bauiv1lib.account
UI functionality related to accounts.
1# Released under the MIT License. See LICENSE for details. 2# 3"""UI functionality related to accounts.""" 4 5from __future__ import annotations 6 7import bauiv1 as bui 8 9 10def show_sign_in_prompt() -> None: 11 """Bring up a prompt telling the user they must sign in.""" 12 from bauiv1lib.confirm import ConfirmWindow 13 from bauiv1lib.account.settings import AccountSettingsWindow 14 15 ConfirmWindow( 16 bui.Lstr(resource='notSignedInErrorText'), 17 lambda: AccountSettingsWindow(modal=True, close_once_signed_in=True), 18 ok_text=bui.Lstr(resource='accountSettingsWindow.signInText'), 19 width=460, 20 height=130, 21 )
def
show_sign_in_prompt() -> None:
11def show_sign_in_prompt() -> None: 12 """Bring up a prompt telling the user they must sign in.""" 13 from bauiv1lib.confirm import ConfirmWindow 14 from bauiv1lib.account.settings import AccountSettingsWindow 15 16 ConfirmWindow( 17 bui.Lstr(resource='notSignedInErrorText'), 18 lambda: AccountSettingsWindow(modal=True, close_once_signed_in=True), 19 ok_text=bui.Lstr(resource='accountSettingsWindow.signInText'), 20 width=460, 21 height=130, 22 )
Bring up a prompt telling the user they must sign in.