|
|
|
@ -1,10 +1,8 @@
|
|
|
|
|
from typing import *
|
|
|
|
|
CONFIRMED: object
|
|
|
|
|
CANCELLED: object
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# rust/src/ui/model_t1/layout.rs
|
|
|
|
|
def confirm_action(
|
|
|
|
|
# extmod/rustmods/modtrezorui2.c
|
|
|
|
|
def layout_new_confirm_action(
|
|
|
|
|
*,
|
|
|
|
|
title: str,
|
|
|
|
|
action: str | None = None,
|
|
|
|
@ -14,7 +12,7 @@ def confirm_action(
|
|
|
|
|
hold: bool | None = None,
|
|
|
|
|
reverse: bool = False,
|
|
|
|
|
) -> object:
|
|
|
|
|
"""Confirm action."""
|
|
|
|
|
"""Example layout."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# extmod/rustmods/modtrezorui2.c
|
|
|
|
@ -65,11 +63,25 @@ def layout_new_confirm_text(
|
|
|
|
|
data: str,
|
|
|
|
|
description: str | None,
|
|
|
|
|
) -> object:
|
|
|
|
|
"""Confirm text."""
|
|
|
|
|
"""Example layout."""
|
|
|
|
|
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(
|
|
|
|
|
*,
|
|
|
|
|