1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00

core: style

This commit is contained in:
Tomas Susanka 2020-03-30 16:04:05 +00:00
parent bf20537f41
commit 0b7a8449f8
2 changed files with 6 additions and 2 deletions

View File

@ -127,7 +127,9 @@ async def _show_share_words(ctx, share_words, share_index=None, group_index=None
utils.ensure(share_words == shares_words_check)
# confirm the share
await require_hold_to_confirm(ctx, paginated, ButtonRequestType.ResetDevice, cancel=False)
await require_hold_to_confirm(
ctx, paginated, ButtonRequestType.ResetDevice, cancel=False
)
def _split_share_into_pages(share_words):

View File

@ -258,7 +258,9 @@ class HoldToConfirm(ui.Layout):
self.cancel = None
if cancel:
self.cancel = Button(ui.grid(16, n_x=4), res.load(ui.ICON_CANCEL), ButtonAbort)
self.cancel = Button(
ui.grid(16, n_x=4), res.load(ui.ICON_CANCEL), ButtonAbort
)
self.cancel.on_click = self.on_cancel # type: ignore
def _on_press_start(self) -> None: