1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 18:49:07 +00:00

apps/common: experiment with ui.layout

This commit is contained in:
Jan Pochyla 2017-10-10 15:34:23 +02:00
parent 3ea5b9c151
commit 3ae6819725
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ if __debug__:
signal = loop.signal()
@ui.layout
@unimport
async def confirm(ctx, content, code=None, *args, **kwargs):
from trezor.ui.confirm import ConfirmDialog, CONFIRMED
@ -29,6 +30,7 @@ async def confirm(ctx, content, code=None, *args, **kwargs):
return await waiter == CONFIRMED
@ui.layout
@unimport
async def hold_to_confirm(ctx, content, code=None, *args, **kwargs):
from trezor.ui.confirm import HoldToConfirmDialog, CONFIRMED

View File

@ -58,6 +58,7 @@ async def request_pin_on_display(ctx: wire.Context, code: int=None) -> str:
raise wire.FailureError(PinCancelled, 'PIN cancelled')
@ui.layout
@unimport
async def request_pin_on_client(ctx: wire.Context, code: int=None) -> str:
from trezor.messages.FailureType import PinCancelled