# Released under the MIT License. See LICENSE for details.#"""UI functionality related to accounts."""from__future__importannotationsimportbauiv1asbui
[docs]defshow_sign_in_prompt()->None:"""Bring up a prompt telling the user they must sign in."""frombauiv1lib.confirmimportConfirmWindowfrombauiv1lib.account.settingsimportAccountSettingsWindowConfirmWindow(bui.Lstr(resource='notSignedInErrorText'),lambda:AccountSettingsWindow(modal=True,close_once_signed_in=True),ok_text=bui.Lstr(resource='accountSettingsWindow.signInText'),width=460,height=130,)