mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
added clear display to pin dialog
This commit is contained in:
parent
4fc85825f6
commit
4852609efb
@ -1,10 +1,6 @@
|
|||||||
from trezor import ui
|
from trezor import ui, dispatcher, loop, res, wire
|
||||||
from trezor.ui.swipe import Swipe
|
from trezor.ui.swipe import Swipe
|
||||||
from trezor.utils import unimport_gen
|
from trezor.utils import unimport_gen
|
||||||
from trezor import dispatcher
|
|
||||||
from trezor import loop
|
|
||||||
from trezor import res
|
|
||||||
from trezor import wire
|
|
||||||
|
|
||||||
|
|
||||||
def swipe_to_rotate():
|
def swipe_to_rotate():
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
from trezor import wire
|
from trezor import wire, ui
|
||||||
from trezor.utils import unimport_gen
|
from trezor.utils import unimport_gen
|
||||||
from trezor.workflows.request_pin import request_pin
|
from trezor.workflows.request_pin import request_pin
|
||||||
|
|
||||||
|
|
||||||
@unimport_gen
|
@unimport_gen
|
||||||
def layout_get_public_key(message):
|
def layout_get_public_key(message):
|
||||||
|
ui.clear();
|
||||||
pin = yield from request_pin()
|
pin = yield from request_pin()
|
||||||
|
|
||||||
if pin is not None:
|
if pin is not None:
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
from . import display, in_area, rotate_coords
|
from . import display, in_area, rotate_coords
|
||||||
from trezor import ui
|
from trezor import ui, loop
|
||||||
from trezor import loop
|
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_BUTTON = {
|
DEFAULT_BUTTON = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
from . import display
|
from . import display
|
||||||
from trezor import ui
|
from trezor import ui, loop
|
||||||
from trezor import loop
|
|
||||||
from trezor.crypto import random
|
from trezor.crypto import random
|
||||||
from .button import Button, BTN_CLICKED
|
from .button import Button, BTN_CLICKED
|
||||||
from .button import CONFIRM_BUTTON, CONFIRM_BUTTON_ACTIVE
|
from .button import CONFIRM_BUTTON, CONFIRM_BUTTON_ACTIVE
|
||||||
@ -29,7 +28,7 @@ class PinMatrix():
|
|||||||
for i, d in enumerate(generate_digits())]
|
for i, d in enumerate(generate_digits())]
|
||||||
|
|
||||||
def render(self):
|
def render(self):
|
||||||
|
|
||||||
# input line with placeholder (x, y, text, style, fg-c, bg-c)
|
# input line with placeholder (x, y, text, style, fg-c, bg-c)
|
||||||
display.text_center(120, 20, 'Enter PIN', ui.BOLD, ui.GREY, ui.BLACK)
|
display.text_center(120, 20, 'Enter PIN', ui.BOLD, ui.GREY, ui.BLACK)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user