Now debug build booted on wiped T1 connects to USB and shows square in top right corner.pull/1616/head
parent
0c46b79ebf
commit
c54077a714
@ -0,0 +1 @@
|
||||
Import errors on T1 startup.
|
@ -0,0 +1,44 @@
|
||||
from trezor import ui, wire
|
||||
from trezor.messages import ButtonRequestType
|
||||
|
||||
if False:
|
||||
from typing import NoReturn, Type, Union
|
||||
|
||||
from trezor.messages.ButtonRequest import EnumTypeButtonRequestType
|
||||
|
||||
ExceptionType = Union[BaseException, Type[BaseException]]
|
||||
|
||||
|
||||
async def confirm_action(
|
||||
ctx: wire.GenericContext,
|
||||
br_type: str,
|
||||
title: str,
|
||||
action: str | None = None,
|
||||
description: str | None = None,
|
||||
description_param: str | None = None,
|
||||
description_param_font: int = ui.BOLD,
|
||||
verb: str | bytes | None = "OK",
|
||||
verb_cancel: str | bytes | None = "X",
|
||||
hold: bool = False,
|
||||
hold_danger: bool = False,
|
||||
icon: str | None = None,
|
||||
icon_color: int | None = None,
|
||||
reverse: bool = False,
|
||||
larger_vspace: bool = False,
|
||||
exc: ExceptionType = wire.ActionCancelled,
|
||||
br_code: EnumTypeButtonRequestType = ButtonRequestType.Other,
|
||||
) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def show_error_and_raise(
|
||||
ctx: wire.GenericContext,
|
||||
br_type: str,
|
||||
content: str,
|
||||
header: str = "Error",
|
||||
subheader: str | None = None,
|
||||
button: str = "Close",
|
||||
red: bool = False,
|
||||
exc: ExceptionType = wire.ActionCancelled,
|
||||
) -> NoReturn:
|
||||
raise NotImplementedError
|
Loading…
Reference in new issue