mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +00:00
apps/common: experiment with ui.layout
This commit is contained in:
parent
3ea5b9c151
commit
3ae6819725
@ -7,6 +7,7 @@ if __debug__:
|
|||||||
signal = loop.signal()
|
signal = loop.signal()
|
||||||
|
|
||||||
|
|
||||||
|
@ui.layout
|
||||||
@unimport
|
@unimport
|
||||||
async def confirm(ctx, content, code=None, *args, **kwargs):
|
async def confirm(ctx, content, code=None, *args, **kwargs):
|
||||||
from trezor.ui.confirm import ConfirmDialog, CONFIRMED
|
from trezor.ui.confirm import ConfirmDialog, CONFIRMED
|
||||||
@ -29,6 +30,7 @@ async def confirm(ctx, content, code=None, *args, **kwargs):
|
|||||||
return await waiter == CONFIRMED
|
return await waiter == CONFIRMED
|
||||||
|
|
||||||
|
|
||||||
|
@ui.layout
|
||||||
@unimport
|
@unimport
|
||||||
async def hold_to_confirm(ctx, content, code=None, *args, **kwargs):
|
async def hold_to_confirm(ctx, content, code=None, *args, **kwargs):
|
||||||
from trezor.ui.confirm import HoldToConfirmDialog, CONFIRMED
|
from trezor.ui.confirm import HoldToConfirmDialog, CONFIRMED
|
||||||
|
@ -58,6 +58,7 @@ async def request_pin_on_display(ctx: wire.Context, code: int=None) -> str:
|
|||||||
raise wire.FailureError(PinCancelled, 'PIN cancelled')
|
raise wire.FailureError(PinCancelled, 'PIN cancelled')
|
||||||
|
|
||||||
|
|
||||||
|
@ui.layout
|
||||||
@unimport
|
@unimport
|
||||||
async def request_pin_on_client(ctx: wire.Context, code: int=None) -> str:
|
async def request_pin_on_client(ctx: wire.Context, code: int=None) -> str:
|
||||||
from trezor.messages.FailureType import PinCancelled
|
from trezor.messages.FailureType import PinCancelled
|
||||||
|
Loading…
Reference in New Issue
Block a user