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

added clear display to pin dialog

This commit is contained in:
chren 2016-06-06 17:53:33 +02:00 committed by Pavol Rusnak
parent 4fc85825f6
commit 4852609efb
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 6 additions and 12 deletions

View File

@ -1,10 +1,6 @@
from trezor import ui
from trezor import ui, dispatcher, loop, res, wire
from trezor.ui.swipe import Swipe
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():

View File

@ -1,11 +1,11 @@
from trezor import wire
from trezor import wire, ui
from trezor.utils import unimport_gen
from trezor.workflows.request_pin import request_pin
@unimport_gen
def layout_get_public_key(message):
ui.clear();
pin = yield from request_pin()
if pin is not None:

View File

@ -1,6 +1,5 @@
from . import display, in_area, rotate_coords
from trezor import ui
from trezor import loop
from trezor import ui, loop
DEFAULT_BUTTON = {

View File

@ -1,6 +1,5 @@
from . import display
from trezor import ui
from trezor import loop
from trezor import ui, loop
from trezor.crypto import random
from .button import Button, BTN_CLICKED
from .button import CONFIRM_BUTTON, CONFIRM_BUTTON_ACTIVE
@ -29,7 +28,7 @@ class PinMatrix():
for i, d in enumerate(generate_digits())]
def render(self):
# 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)