Exemplo n.º 1
0
def _start_progress() -> None:
    # Because we are drawing to the screen manually, without a layout, we
    # should make sure that no other layout is running.  At this point, only
    # the homescreen should be on, so shut it down.
    workflow.kill_default()
    t = Text("Please wait", ui.ICON_CONFIG)
    ui.draw_simple(t)
Exemplo n.º 2
0
def _entry_dialog() -> None:
    from trezor.ui import ICON_CONFIG, draw_simple
    from trezor.ui.components.tt.text import Text

    text = Text("Passphrase entry", ICON_CONFIG)
    text.normal("Please type your", "passphrase on the", "connected host.")
    draw_simple(text)
Exemplo n.º 3
0
def _start_progress() -> None:
    # Because we are drawing to the screen manually, without a layout, we
    # should make sure that no other layout is running.
    workflow.close_others()
    t = Text("Please wait", ui.ICON_CONFIG)
    ui.draw_simple(t)
Exemplo n.º 4
0
def _entry_dialog() -> None:
    text = Text("Passphrase entry", ICON_CONFIG)
    text.normal("Please type your", "passphrase on the", "connected host.")
    draw_simple(text)
Exemplo n.º 5
0
def draw_simple_text(title: str, description: str = "") -> None:
    text = Text(title, ui.ICON_CONFIG, new_lines=False)
    text.normal(description)
    ui.draw_simple(text)