2021-06-08 11:29:03 +00:00
|
|
|
from typing import *
|
|
|
|
|
|
|
|
|
|
|
|
# extmod/rustmods/modtrezorui2.c
|
2022-01-18 23:49:18 +00:00
|
|
|
def layout_new_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:
|
2021-06-08 11:29:03 +00:00
|
|
|
"""Example layout."""
|
2021-10-29 11:06:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
# extmod/rustmods/modtrezorui2.c
|
2022-01-18 23:49:18 +00:00
|
|
|
def layout_new_example(text: str) -> object:
|
2021-12-13 11:22:52 +00:00
|
|
|
"""Example layout."""
|
|
|
|
|
|
|
|
|
2022-02-07 16:09:39 +00:00
|
|
|
# extmod/rustmods/modtrezorui2.c
|
|
|
|
def layout_new_pin(
|
|
|
|
*,
|
|
|
|
prompt: str,
|
|
|
|
subprompt: str,
|
|
|
|
allow_cancel: bool,
|
2022-03-04 11:56:49 +00:00
|
|
|
warning: str | None,
|
2022-02-07 16:09:39 +00:00
|
|
|
) -> object:
|
|
|
|
"""PIN keyboard."""
|
|
|
|
|
|
|
|
|
2022-03-04 11:56:49 +00:00
|
|
|
# extmod/rustmods/modtrezorui2.c
|
|
|
|
def layout_new_passphrase(
|
|
|
|
*,
|
|
|
|
prompt: str,
|
|
|
|
max_len: int,
|
|
|
|
) -> object:
|
|
|
|
"""Passphrase keyboard."""
|
|
|
|
|
|
|
|
|
|
|
|
# extmod/rustmods/modtrezorui2.c
|
|
|
|
def layout_new_bip39(
|
|
|
|
*,
|
|
|
|
prompt: str,
|
|
|
|
) -> object:
|
|
|
|
"""BIP39 keyboard."""
|
|
|
|
|
|
|
|
|
|
|
|
# extmod/rustmods/modtrezorui2.c
|
|
|
|
def layout_new_slip39(
|
|
|
|
*,
|
|
|
|
prompt: str,
|
|
|
|
) -> object:
|
|
|
|
"""BIP39 keyboard."""
|
|
|
|
|
|
|
|
|
2021-12-13 11:22:52 +00:00
|
|
|
# extmod/rustmods/modtrezorui2.c
|
|
|
|
def layout_new_confirm_text(
|
|
|
|
*,
|
|
|
|
title: str,
|
|
|
|
data: str,
|
|
|
|
description: str | None,
|
2022-01-18 23:49:18 +00:00
|
|
|
) -> object:
|
2021-12-13 11:22:52 +00:00
|
|
|
"""Example layout."""
|