mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-25 15:58:08 +00:00
style: fix article
[no changelog]
This commit is contained in:
parent
78141c42fa
commit
bd7b0a0c91
@ -1731,7 +1731,7 @@ pub static mp_module_trezorui2: Module = obj_module! {
|
|||||||
/// """Calls drop on contents of the root component."""
|
/// """Calls drop on contents of the root component."""
|
||||||
///
|
///
|
||||||
/// class UiResult:
|
/// class UiResult:
|
||||||
/// """Result of an UI operation."""
|
/// """Result of a UI operation."""
|
||||||
/// pass
|
/// pass
|
||||||
///
|
///
|
||||||
/// mock:global
|
/// mock:global
|
||||||
|
@ -1141,7 +1141,7 @@ class LayoutObj(Generic[T]):
|
|||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
class UiResult:
|
class UiResult:
|
||||||
"""Result of an UI operation."""
|
"""Result of a UI operation."""
|
||||||
pass
|
pass
|
||||||
CONFIRMED: UiResult
|
CONFIRMED: UiResult
|
||||||
CANCELLED: UiResult
|
CANCELLED: UiResult
|
||||||
|
@ -29,7 +29,7 @@ if __debug__:
|
|||||||
|
|
||||||
# trezor.pin imports trezor.utils
|
# trezor.pin imports trezor.utils
|
||||||
# We need it as an always-active module because trezor.pin.show_pin_timeout is used
|
# We need it as an always-active module because trezor.pin.show_pin_timeout is used
|
||||||
# as an UI callback for storage, which can be invoked at any time
|
# as a UI callback for storage, which can be invoked at any time
|
||||||
import trezor.pin # noqa: F401
|
import trezor.pin # noqa: F401
|
||||||
|
|
||||||
# === Prepare the USB interfaces first. Do not connect to the host yet.
|
# === Prepare the USB interfaces first. Do not connect to the host yet.
|
||||||
|
@ -100,7 +100,7 @@ class TrezorClient(Generic[UI]):
|
|||||||
You have to provide a `transport`, i.e., a raw connection to the device. You can
|
You have to provide a `transport`, i.e., a raw connection to the device. You can
|
||||||
use `trezorlib.transport.get_transport` to find one.
|
use `trezorlib.transport.get_transport` to find one.
|
||||||
|
|
||||||
You have to provide an UI implementation for the three kinds of interaction:
|
You have to provide a UI implementation for the three kinds of interaction:
|
||||||
- button request (notify the user that their interaction is needed)
|
- button request (notify the user that their interaction is needed)
|
||||||
- PIN request (on T1, ask the user to input numbers for a PIN matrix)
|
- PIN request (on T1, ask the user to input numbers for a PIN matrix)
|
||||||
- passphrase request (ask the user to enter a passphrase) See `trezorlib.ui` for
|
- passphrase request (ask the user to enter a passphrase) See `trezorlib.ui` for
|
||||||
|
Loading…
Reference in New Issue
Block a user