1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 20:38:10 +00:00

chore(core): regenerate trezorui2.pyi

[no changelog]
This commit is contained in:
grdddj 2023-07-11 15:05:39 +02:00 committed by Jiří Musil
parent 8f7122cb84
commit ec9569a00e

View File

@ -1,17 +1,19 @@
from typing import * from typing import *
CONFIRMED: object CONFIRMED: object
CANCELLED: object CANCELLED: object
INFO: object INFO: object
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def disable_animation(disable: bool) -> None: def disable_animation(disable: bool) -> None:
"""Disable animations, debug builds only.""" """Disable animations, debug builds only."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def toif_info(data: bytes) -> tuple[int, int, bool]: def toif_info(data: bytes) -> tuple[int, int, bool]:
"""Get TOIF image dimensions and format (width: int, height: int, is_grayscale: bool).""" """Get TOIF image dimensions and format (width: int, height: int, is_grayscale: bool)."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_action( def confirm_action(
*, *,
@ -26,6 +28,7 @@ def confirm_action(
) -> object: ) -> object:
"""Confirm action.""" """Confirm action."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_blob( def confirm_blob(
*, *,
@ -39,6 +42,7 @@ def confirm_blob(
) -> object: ) -> object:
"""Confirm byte sequence data.""" """Confirm byte sequence data."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_address( def confirm_address(
*, *,
@ -49,6 +53,7 @@ def confirm_address(
) -> object: ) -> object:
"""Confirm address.""" """Confirm address."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_properties( def confirm_properties(
*, *,
@ -60,6 +65,7 @@ def confirm_properties(
the value is to be rendered as binary with monospace font, False otherwise. the value is to be rendered as binary with monospace font, False otherwise.
This only concerns the text style, you need to decode the value to UTF-8 in python.""" This only concerns the text style, you need to decode the value to UTF-8 in python."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_reset_device( def confirm_reset_device(
*, *,
@ -68,10 +74,12 @@ def confirm_reset_device(
) -> object: ) -> object:
"""Confirm TOS before device setup.""" """Confirm TOS before device setup."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_backup() -> object: def confirm_backup() -> object:
"""Strongly recommend user to do backup.""" """Strongly recommend user to do backup."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_address_details( def show_address_details(
*, *,
@ -83,6 +91,7 @@ def show_address_details(
) -> object: ) -> object:
"""Show address details - QR code, account, path, cosigner xpubs.""" """Show address details - QR code, account, path, cosigner xpubs."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_value( def confirm_value(
*, *,
@ -94,6 +103,7 @@ def confirm_value(
) -> object: ) -> object:
"""Confirm value.""" """Confirm value."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_joint_total( def confirm_joint_total(
*, *,
@ -102,6 +112,7 @@ def confirm_joint_total(
) -> object: ) -> object:
"""Confirm total if there are external inputs.""" """Confirm total if there are external inputs."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_modify_output( def confirm_modify_output(
*, *,
@ -112,6 +123,7 @@ def confirm_modify_output(
) -> object: ) -> object:
"""Decrease or increase amount for given address.""" """Decrease or increase amount for given address."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_output( def confirm_output(
*, *,
@ -123,6 +135,7 @@ def confirm_output(
) -> object: ) -> object:
"""Confirm output.""" """Confirm output."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_total( def confirm_total(
*, *,
@ -135,18 +148,11 @@ def confirm_total(
) -> object: ) -> object:
"""Confirm summary of a transaction.""" """Confirm summary of a transaction."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def tutorial() -> object: def tutorial() -> object:
"""Show user how to interact with the device.""" """Show user how to interact with the device."""
# rust/src/ui/model_tr/layout.rs
def show_error(
*,
title: str,
description: str,
button: str,
) -> object:
"""Show a popup with text centered both vertically and horizontally. With just a middle button."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_modify_fee( def confirm_modify_fee(
@ -159,6 +165,7 @@ def confirm_modify_fee(
) -> object: ) -> object:
"""Decrease or increase transaction fee.""" """Decrease or increase transaction fee."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_fido( def confirm_fido(
*, *,
@ -171,6 +178,7 @@ def confirm_fido(
Returns page index in case of confirmation and CANCELLED otherwise. Returns page index in case of confirmation and CANCELLED otherwise.
""" """
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def multiple_pages_texts( def multiple_pages_texts(
*, *,
@ -180,6 +188,8 @@ def multiple_pages_texts(
) -> object: ) -> object:
"""Show multiple texts, each on its own page.""" """Show multiple texts, each on its own page."""
# rust/src/ui/model_tr/layout.rs
def show_warning( def show_warning(
*, *,
button: str, button: str,
@ -188,6 +198,7 @@ def show_warning(
) -> object: ) -> object:
"""Warning modal with middle button and centered text.""" """Warning modal with middle button and centered text."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_info( def show_info(
*, *,
@ -197,14 +208,17 @@ def show_info(
) -> object: ) -> object:
"""Info modal.""" """Info modal."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_passphrase() -> object: def show_passphrase() -> object:
"""Show passphrase on host dialog.""" """Show passphrase on host dialog."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_mismatch() -> object: def show_mismatch() -> object:
"""Warning modal, receiving address mismatch.""" """Warning modal, receiving address mismatch."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_with_info( def confirm_with_info(
*, *,
@ -216,6 +230,7 @@ def confirm_with_info(
"""Confirm given items but with third button. Always single page """Confirm given items but with third button. Always single page
without scrolling.""" without scrolling."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_coinjoin( def confirm_coinjoin(
*, *,
@ -224,6 +239,7 @@ def confirm_coinjoin(
) -> object: ) -> object:
"""Confirm coinjoin authorization.""" """Confirm coinjoin authorization."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def request_pin( def request_pin(
*, *,
@ -234,6 +250,7 @@ def request_pin(
) -> str | object: ) -> str | object:
"""Request pin on device.""" """Request pin on device."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def request_passphrase( def request_passphrase(
*, *,
@ -242,6 +259,7 @@ def request_passphrase(
) -> str | object: ) -> str | object:
"""Get passphrase.""" """Get passphrase."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def request_bip39( def request_bip39(
*, *,
@ -249,12 +267,14 @@ def request_bip39(
) -> str: ) -> str:
"""Get recovery word for BIP39.""" """Get recovery word for BIP39."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def request_slip39( def request_slip39(
*, *,
prompt: str, prompt: str,
) -> str: ) -> str:
"""SLIP39 word input keyboard.""" """SLIP39 word input keyboard."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def select_word( def select_word(
@ -263,8 +283,9 @@ def select_word(
description: str, description: str,
words: Iterable[str], words: Iterable[str],
) -> int: ) -> int:
"""Select mnemonic word from three possibilities - seed check after backup. The """Select mnemonic word from three possibilities - seed check after backup. The
iterable must be of exact size. Returns index in range `0..3`.""" iterable must be of exact size. Returns index in range `0..3`."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_share_words( def show_share_words(
@ -273,6 +294,7 @@ def show_share_words(
) -> object: ) -> object:
"""Shows a backup seed.""" """Shows a backup seed."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def request_number( def request_number(
*, *,
@ -282,7 +304,8 @@ def request_number(
max_count: int, max_count: int,
description: Callable[[int], str] | None = None, # unused on TR description: Callable[[int], str] | None = None, # unused on TR
) -> object: ) -> object:
"""Number input with + and - buttons, description, and info button.""" """Number input with + and - buttons, description, and info button."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_checklist( def show_checklist(
@ -292,8 +315,9 @@ def show_checklist(
active: int, active: int,
button: str, button: str,
) -> object: ) -> object:
"""Checklist of backup steps. Active index is highlighted, previous items have check """Checklist of backup steps. Active index is highlighted, previous items have check
mark next to them.""" mark next to them."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def confirm_recovery( def confirm_recovery(
@ -305,21 +329,24 @@ def confirm_recovery(
info_button: bool, # unused on TR info_button: bool, # unused on TR
show_info: bool, show_info: bool,
) -> object: ) -> object:
"""Device recovery homescreen.""" """Device recovery homescreen."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def select_word_count( def select_word_count(
*, *,
dry_run: bool, # unused on TR dry_run: bool, # unused on TR
) -> int | str: # TR returns str ) -> int | str: # TR returns str
"""Select mnemonic word count from (12, 18, 20, 24, 33).""" """Select mnemonic word count from (12, 18, 20, 24, 33)."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_group_share_success( def show_group_share_success(
*, *,
lines: Iterable[str], lines: Iterable[str],
) -> int: ) -> int:
"""Shown after successfully finishing a group.""" """Shown after successfully finishing a group."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_progress( def show_progress(
@ -328,9 +355,10 @@ def show_progress(
indeterminate: bool = False, indeterminate: bool = False,
description: str = "", description: str = "",
) -> object: ) -> object:
"""Show progress loader. Please note that the number of lines reserved on screen for """Show progress loader. Please note that the number of lines reserved on screen for
description is determined at construction time. If you want multiline descriptions description is determined at construction time. If you want multiline descriptions
make sure the initial description has at least that amount of lines.""" make sure the initial description has at least that amount of lines."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_progress_coinjoin( def show_progress_coinjoin(
@ -340,8 +368,9 @@ def show_progress_coinjoin(
time_ms: int = 0, time_ms: int = 0,
skip_first_paint: bool = False, skip_first_paint: bool = False,
) -> object: ) -> object:
"""Show progress loader for coinjoin. Returns CANCELLED after a specified time when """Show progress loader for coinjoin. Returns CANCELLED after a specified time when
time_ms timeout is passed.""" time_ms timeout is passed."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_homescreen( def show_homescreen(
@ -354,6 +383,7 @@ def show_homescreen(
) -> CANCELLED: ) -> CANCELLED:
"""Idle homescreen.""" """Idle homescreen."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def show_lockscreen( def show_lockscreen(
*, *,
@ -363,26 +393,30 @@ def show_lockscreen(
) -> CANCELLED: ) -> CANCELLED:
"""Homescreen for locked device.""" """Homescreen for locked device."""
# rust/src/ui/model_tr/layout.rs # rust/src/ui/model_tr/layout.rs
def draw_welcome_screen() -> None: def draw_welcome_screen() -> None:
"""Show logo icon with the model name at the bottom and return.""" """Show logo icon with the model name at the bottom and return."""
CONFIRMED: object CONFIRMED: object
CANCELLED: object CANCELLED: object
INFO: object INFO: object
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def disable_animation(disable: bool) -> None: def disable_animation(disable: bool) -> None:
"""Disable animations, debug builds only.""" """Disable animations, debug builds only."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def jpeg_info(data: bytes) -> tuple[int, int, int]: def jpeg_info(data: bytes) -> tuple[int, int, int]:
"""Get JPEG image dimensions (width: int, height: int, mcu_height: int).""" """Get JPEG image dimensions (width: int, height: int, mcu_height: int)."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def jpeg_test(data: bytes) -> bool: def jpeg_test(data: bytes) -> bool:
"""Test JPEG image.""" """Test JPEG image."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_action( def confirm_action(
*, *,
@ -397,6 +431,7 @@ def confirm_action(
) -> object: ) -> object:
"""Confirm action.""" """Confirm action."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_emphasized( def confirm_emphasized(
*, *,
@ -407,6 +442,7 @@ def confirm_emphasized(
"""Confirm formatted text that has been pre-split in python. For tuples """Confirm formatted text that has been pre-split in python. For tuples
the first component is a bool indicating whether this part is emphasized.""" the first component is a bool indicating whether this part is emphasized."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_homescreen( def confirm_homescreen(
*, *,
@ -415,6 +451,7 @@ def confirm_homescreen(
) -> object: ) -> object:
"""Confirm homescreen.""" """Confirm homescreen."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_blob( def confirm_blob(
*, *,
@ -428,6 +465,7 @@ def confirm_blob(
) -> object: ) -> object:
"""Confirm byte sequence data.""" """Confirm byte sequence data."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_address( def confirm_address(
*, *,
@ -439,6 +477,7 @@ def confirm_address(
"""Confirm address. Similar to `confirm_blob` but has corner info button """Confirm address. Similar to `confirm_blob` but has corner info button
and allows left swipe which does the same thing as the button.""" and allows left swipe which does the same thing as the button."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_properties( def confirm_properties(
*, *,
@ -449,6 +488,7 @@ def confirm_properties(
"""Confirm list of key-value pairs. The third component in the tuple should be True if """Confirm list of key-value pairs. The third component in the tuple should be True if
the value is to be rendered as binary with monospace font, False otherwise.""" the value is to be rendered as binary with monospace font, False otherwise."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_reset_device( def confirm_reset_device(
*, *,
@ -457,6 +497,7 @@ def confirm_reset_device(
) -> object: ) -> object:
"""Confirm TOS before device setup.""" """Confirm TOS before device setup."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_address_details( def show_address_details(
*, *,
@ -468,6 +509,7 @@ def show_address_details(
) -> object: ) -> object:
"""Show address details - QR code, account, path, cosigner xpubs.""" """Show address details - QR code, account, path, cosigner xpubs."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_spending_details( def show_spending_details(
*, *,
@ -478,6 +520,7 @@ def show_spending_details(
) -> object: ) -> object:
"""Show metadata when for outgoing transaction.""" """Show metadata when for outgoing transaction."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_value( def confirm_value(
*, *,
@ -492,6 +535,7 @@ def confirm_value(
) -> object: ) -> object:
"""Confirm value. Merge of confirm_total and confirm_output.""" """Confirm value. Merge of confirm_total and confirm_output."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_total( def confirm_total(
*, *,
@ -501,6 +545,7 @@ def confirm_total(
) -> object: ) -> object:
"""Transaction summary. Always hold to confirm.""" """Transaction summary. Always hold to confirm."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_modify_output( def confirm_modify_output(
*, *,
@ -511,6 +556,7 @@ def confirm_modify_output(
) -> object: ) -> object:
"""Decrease or increase amount for given address.""" """Decrease or increase amount for given address."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_modify_fee( def confirm_modify_fee(
*, *,
@ -522,6 +568,7 @@ def confirm_modify_fee(
) -> object: ) -> object:
"""Decrease or increase transaction fee.""" """Decrease or increase transaction fee."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_fido( def confirm_fido(
*, *,
@ -534,6 +581,7 @@ def confirm_fido(
Returns page index in case of confirmation and CANCELLED otherwise. Returns page index in case of confirmation and CANCELLED otherwise.
""" """
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_error( def show_error(
*, *,
@ -545,6 +593,7 @@ def show_error(
) -> object: ) -> object:
"""Error modal. No buttons shown when `button` is empty string.""" """Error modal. No buttons shown when `button` is empty string."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_warning( def show_warning(
*, *,
@ -556,6 +605,7 @@ def show_warning(
) -> object: ) -> object:
"""Warning modal. No buttons shown when `button` is empty string.""" """Warning modal. No buttons shown when `button` is empty string."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_success( def show_success(
*, *,
@ -567,6 +617,7 @@ def show_success(
) -> object: ) -> object:
"""Success modal. No buttons shown when `button` is empty string.""" """Success modal. No buttons shown when `button` is empty string."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_info( def show_info(
*, *,
@ -578,10 +629,12 @@ def show_info(
) -> object: ) -> object:
"""Info modal. No buttons shown when `button` is empty string.""" """Info modal. No buttons shown when `button` is empty string."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_mismatch() -> object: def show_mismatch() -> object:
"""Warning modal, receiving address mismatch.""" """Warning modal, receiving address mismatch."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_simple( def show_simple(
*, *,
@ -591,6 +644,7 @@ def show_simple(
) -> object: ) -> object:
"""Simple dialog with text and one button.""" """Simple dialog with text and one button."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_with_info( def confirm_with_info(
*, *,
@ -602,6 +656,7 @@ def confirm_with_info(
"""Confirm given items but with third button. Always single page """Confirm given items but with third button. Always single page
without scrolling.""" without scrolling."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_more( def confirm_more(
*, *,
@ -612,6 +667,7 @@ def confirm_more(
"""Confirm long content with the possibility to go back from any page. """Confirm long content with the possibility to go back from any page.
Meant to be used with confirm_with_info.""" Meant to be used with confirm_with_info."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_coinjoin( def confirm_coinjoin(
*, *,
@ -620,6 +676,7 @@ def confirm_coinjoin(
) -> object: ) -> object:
"""Confirm coinjoin authorization.""" """Confirm coinjoin authorization."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def request_pin( def request_pin(
*, *,
@ -630,6 +687,7 @@ def request_pin(
) -> str | object: ) -> str | object:
"""Request pin on device.""" """Request pin on device."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def request_passphrase( def request_passphrase(
*, *,
@ -638,6 +696,7 @@ def request_passphrase(
) -> str | object: ) -> str | object:
"""Passphrase input keyboard.""" """Passphrase input keyboard."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def request_bip39( def request_bip39(
*, *,
@ -645,6 +704,7 @@ def request_bip39(
) -> str: ) -> str:
"""BIP39 word input keyboard.""" """BIP39 word input keyboard."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def request_slip39( def request_slip39(
*, *,
@ -652,6 +712,7 @@ def request_slip39(
) -> str: ) -> str:
"""SLIP39 word input keyboard.""" """SLIP39 word input keyboard."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def select_word( def select_word(
*, *,
@ -660,7 +721,8 @@ def select_word(
words: Iterable[str], words: Iterable[str],
) -> int: ) -> int:
"""Select mnemonic word from three possibilities - seed check after backup. The """Select mnemonic word from three possibilities - seed check after backup. The
iterable must be of exact size. Returns index in range `0..3`.""" iterable must be of exact size. Returns index in range `0..3`."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_share_words( def show_share_words(
@ -670,6 +732,7 @@ def show_share_words(
) -> object: ) -> object:
"""Show mnemonic for backup. Expects the words pre-divided into individual pages.""" """Show mnemonic for backup. Expects the words pre-divided into individual pages."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def request_number( def request_number(
*, *,
@ -681,6 +744,7 @@ def request_number(
) -> object: ) -> object:
"""Number input with + and - buttons, description, and info button.""" """Number input with + and - buttons, description, and info button."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_checklist( def show_checklist(
*, *,
@ -690,7 +754,8 @@ def show_checklist(
button: str, button: str,
) -> object: ) -> object:
"""Checklist of backup steps. Active index is highlighted, previous items have check """Checklist of backup steps. Active index is highlighted, previous items have check
mark next to them.""" mark next to them."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def confirm_recovery( def confirm_recovery(
@ -703,6 +768,7 @@ def confirm_recovery(
) -> object: ) -> object:
"""Device recovery homescreen.""" """Device recovery homescreen."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def select_word_count( def select_word_count(
*, *,
@ -710,10 +776,15 @@ def select_word_count(
) -> int | str: # TT returns int ) -> int | str: # TT returns int
"""Select mnemonic word count from (12, 18, 20, 24, 33).""" """Select mnemonic word count from (12, 18, 20, 24, 33)."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_group_share_success(*, lines: Iterable[str]) -> int: def show_group_share_success(
*,
lines: Iterable[str]
) -> int:
"""Shown after successfully finishing a group.""" """Shown after successfully finishing a group."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_remaining_shares( def show_remaining_shares(
*, *,
@ -721,6 +792,7 @@ def show_remaining_shares(
) -> int: ) -> int:
"""Shows SLIP39 state after info button is pressed on `confirm_recovery`.""" """Shows SLIP39 state after info button is pressed on `confirm_recovery`."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_progress( def show_progress(
*, *,
@ -729,8 +801,9 @@ def show_progress(
description: str = "", description: str = "",
) -> object: ) -> object:
"""Show progress loader. Please note that the number of lines reserved on screen for """Show progress loader. Please note that the number of lines reserved on screen for
description is determined at construction time. If you want multiline descriptions description is determined at construction time. If you want multiline descriptions
make sure the initial description has at least that amount of lines.""" make sure the initial description has at least that amount of lines."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_progress_coinjoin( def show_progress_coinjoin(
@ -741,7 +814,8 @@ def show_progress_coinjoin(
skip_first_paint: bool = False, skip_first_paint: bool = False,
) -> object: ) -> object:
"""Show progress loader for coinjoin. Returns CANCELLED after a specified time when """Show progress loader for coinjoin. Returns CANCELLED after a specified time when
time_ms timeout is passed.""" time_ms timeout is passed."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_homescreen( def show_homescreen(
@ -754,6 +828,7 @@ def show_homescreen(
) -> CANCELLED: ) -> CANCELLED:
"""Idle homescreen.""" """Idle homescreen."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def show_lockscreen( def show_lockscreen(
*, *,
@ -763,6 +838,7 @@ def show_lockscreen(
) -> CANCELLED: ) -> CANCELLED:
"""Homescreen for locked device.""" """Homescreen for locked device."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
def draw_welcome_screen() -> None: def draw_welcome_screen() -> None:
"""Show logo icon with the model name at the bottom and return.""" """Show logo icon with the model name at the bottom and return."""