1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

micro fix

This commit is contained in:
Peter Jensen 2017-03-21 13:15:04 +01:00
parent 416676120b
commit 96020a4953
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ def _render_pin_failure(sleep_ms: int):
ui.BOLD, ui.RED, ui.BLACK) ui.BOLD, ui.RED, ui.BLACK)
def _get_code_and_label(code: int) -> str: def _get_code_and_label(code: int):
from trezor.messages import PinMatrixRequestType from trezor.messages import PinMatrixRequestType
if code is None: if code is None:
code = PinMatrixRequestType.Current code = PinMatrixRequestType.Current

View File

@ -36,7 +36,7 @@ class ConfirmDialog(Widget):
yield loop.Wait((super().__iter__(), self.content)) yield loop.Wait((super().__iter__(), self.content))
class HoldToConfirmDialog(): class HoldToConfirmDialog(Widget):
def __init__(self, content=None, hold='Hold to confirm', *args, **kwargs): def __init__(self, content=None, hold='Hold to confirm', *args, **kwargs):
self.button = Button((0, 240 - 48, 240, 48), hold, self.button = Button((0, 240 - 48, 240, 48), hold,