コード例 #1
0
ファイル: mnemonic.py プロジェクト: wusanshou/trezor-firmware
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)
コード例 #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)
コード例 #3
0
ファイル: mnemonic.py プロジェクト: bittricky/trezor-firmware
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)
コード例 #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)
コード例 #5
0
ファイル: __init__.py プロジェクト: ph4r05/trezor-firmware
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)