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)
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)
async def start_seed_import(menu, label, item): import seed return seed.WordNestMenu(item.arg)