print('This is the help page') def addblock(): lfn = input('Ledger file name: ') generate.new_block(lfn) def print_current_block(): for i in range(0, len(chain.blockchain)): generate.print_block(chain.blockchain, i) def ngc(): name = input("name>\t") generate.initailize_new_genesis_chain(name) main_menu = { 'HELP MENU': help_menu, 'Initailize IPFS': network.ipfs_daemon_init, 'New Genesis Chain': ngc, 'Upload genesis chain to IPFS': ipfs.upload_g_chain, 'ipfs l decon': ipfs.ipfs_ledger_deconstruct, 'New block': addblock, 'Print current block': print_current_block, 'Quit': menu.quit_menu } menu.initialize_menu(main_menu, 'BB Main Menu')
def script5run(): refresh_screen() menu.initialize_menu(sc_dct, "Scripts")
def mm(): # Launch the terminal menu interface menu.initialize_menu(main_menu, 'BB Main Menu')
def n_menu(): refresh_screen() menu.initialize_menu(n_m, 'NETWORKING MAIN MENU')
def rootinfo(): refresh_screen() menu.initialize_menu(rim, "ROOT_INFO")
def dbmmfunc(): refresh_screen() menu.initialize_menu(db_mm, 'DATABASE MAIN MENU')
def db_e_main_menu(): refresh_screen() menu.initialize_menu(db_em, "DB_events Main Menu")
def db_c_main_menu(): refresh_screen() menu.initialize_menu(db_cm, "DB_contacts Main Menu")
def db_main_menu(): refresh_screen() menu.initialize_menu(db_mm, "DB Main Menu")
'node_0': tpls_serverclient2 } ## ROOT INFO rim = { 'back': db_main_menu, 'Root-File-List': rootfile_list_2, 'rootrat': rootfile_list, 'stable_db': stable_db, 'Index-path': rfsm } ## MAIN MENU mm = { 'Scripts': script5run, 'NETWORKING' : n_menu, 'DATABASE' : dbmmfunc, 'ROOT_INFO': rootinfo, 'QUIT': menu.quit_menu } ######## APP INTERFACE ######## while run: refresh_screen() #menu.display_menu(mm, 'root-commands') menu.initialize_menu(mm, 'ROOT FILE SYSTEM MAIN MENU')