mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-19 14:08:11 +00:00
7804893179
Make event.rs shared among all features, under src/ui/event.rs. [no changelog]
107 lines
2.0 KiB
Python
107 lines
2.0 KiB
Python
from typing import *
|
|
CONFIRMED: object
|
|
CANCELLED: object
|
|
|
|
|
|
# rust/src/ui/model_t1/layout.rs
|
|
def confirm_action(
|
|
*,
|
|
title: str,
|
|
action: str | None = None,
|
|
description: str | None = None,
|
|
verb: str | None = None,
|
|
verb_cancel: str | None = None,
|
|
hold: bool | None = None,
|
|
reverse: bool = False,
|
|
) -> object:
|
|
"""Confirm action."""
|
|
|
|
|
|
# rust/src/ui/model_t1/layout.rs
|
|
def confirm_text(
|
|
*,
|
|
title: str,
|
|
data: str,
|
|
description: str | None,
|
|
) -> object:
|
|
"""Confirm text."""
|
|
CONFIRMED: object
|
|
CANCELLED: object
|
|
|
|
|
|
# rust/src/ui/model_tr/layout.rs
|
|
def confirm_action(
|
|
*,
|
|
title: str,
|
|
action: str | None = None,
|
|
description: str | None = None,
|
|
verb: str | None = None,
|
|
verb_cancel: str | None = None,
|
|
hold: bool | None = None,
|
|
reverse: bool = False,
|
|
) -> object:
|
|
"""Confirm action."""
|
|
|
|
|
|
# rust/src/ui/model_tr/layout.rs
|
|
def confirm_text(
|
|
*,
|
|
title: str,
|
|
data: str,
|
|
description: str | None,
|
|
) -> object:
|
|
"""Confirm text."""
|
|
CONFIRMED: object
|
|
CANCELLED: object
|
|
INFO: object
|
|
|
|
|
|
# rust/src/ui/model_tt/layout.rs
|
|
def confirm_action(
|
|
*,
|
|
title: str,
|
|
action: str | None = None,
|
|
description: str | None = None,
|
|
verb: str | None = None,
|
|
verb_cancel: str | None = None,
|
|
hold: bool | None = None,
|
|
reverse: bool = False,
|
|
) -> object:
|
|
"""Confirm action."""
|
|
|
|
|
|
# rust/src/ui/model_tt/layout.rs
|
|
def request_pin(
|
|
*,
|
|
prompt: str,
|
|
subprompt: str | None = None,
|
|
allow_cancel: bool = True,
|
|
warning: str | None = None,
|
|
) -> str | object:
|
|
"""Request pin on device."""
|
|
|
|
|
|
# rust/src/ui/model_tt/layout.rs
|
|
def request_passphrase(
|
|
*,
|
|
prompt: str,
|
|
max_len: int,
|
|
) -> str | object:
|
|
"""Passphrase input keyboard."""
|
|
|
|
|
|
# rust/src/ui/model_tt/layout.rs
|
|
def request_bip39(
|
|
*,
|
|
prompt: str,
|
|
) -> str:
|
|
"""BIP39 word input keyboard."""
|
|
|
|
|
|
# rust/src/ui/model_tt/layout.rs
|
|
def request_slip39(
|
|
*,
|
|
prompt: str,
|
|
) -> str:
|
|
"""SLIP39 word input keyboard."""
|