예제 #1
0
파일: backups.py 프로젝트: mluczak/firmware
async def restore_complete(fname_or_fd):
    from ux import the_ux

    with imported('seed') as seed:

        async def done(words):
            # remove all pw-picking from menu stack
            seed.WordNestMenu.pop_all()

            await restore_complete_doit(fname_or_fd, words)

        # give them a menu to pick from
        m = seed.WordNestMenu(num_words=num_pw_words, has_checksum=False, done_cb=done)

    the_ux.push(m)
예제 #2
0
async def restore_complete(fname_or_fd):
    from ux import the_ux

    async def done(words):
        # remove all pw-picking from menu stack
        seed.WordNestMenu.pop_all()

        prob = await restore_complete_doit(fname_or_fd, words)

        if prob:
            await ux_show_story(prob, title='FAILED')

    # give them a menu to pick from, and start picking
    m = seed.WordNestMenu(num_words=num_pw_words, has_checksum=False, done_cb=done)

    the_ux.push(m)
예제 #3
0
파일: actions.py 프로젝트: syscoin/firmware
async def start_seed_import(menu, label, item):
    import seed
    return seed.WordNestMenu(item.arg)