def start_module(): """ Starts this module and displays its menu. * User can access default special features from here. * User can go back to main menu from here. Returns: None """ while True: # List of available option list_options = [ 'Show list of employees', 'Add new employee', 'Remove employee', 'Update employee', 'Get oldest employee', 'Get employee with age closest to average' ] # printing menu ui.print_menu("Human resources manager", list_options, "(0) Main menu") # Dict of available option to start equal function dic_function = { '1': show_table, '2': add, '3': remove, '4': update, '5': get_oldest_person, '6': get_persons_closest_to_average, '0': exit } # Start option common.choose_by_dic(dic_function, table)
def start_module(): """ Starts this module and displays its menu. * User can access default special features from here. * User can go back to main menu from here. Returns: None """ while True: # List of available option list_options = [ 'Show table', 'Add new customer', 'Remove customer', 'Update customer', 'get_counts_by_manufacturers', 'get_average_by_manufacturer' ] # printing menu ui.print_menu("Customer relation management", list_options, "Main menu press 0") # Dick of available option to start equal function dic_function = { '1': show_table, "2": add, "3": remove, "4": update, "5": get_counts_by_manufacturers, "6": get_average_by_manufacturer, '0': exit } # Start oprion common.choose_by_dic(dic_function, table)
def start_module(): """ Starts this module and displays its menu. * User can access default special features from here. * User can go back to main menu from here. Returns: None """ while True: # List of available option list_options = [ 'Show table', 'Add new customer', 'Remove customer', 'Update customer', 'Show ID of customer with longest name', 'Show customers which has subscripted the newsletter' ] # printing menu ui.print_menu("Customer relation management", list_options, "Main menu press 0") # Dick of available option to start equal function dic_function = { '1': show_table, "2": add, "3": remove, "4": update, "5": get_longest_name_id, "6": get_subscribed_emails, '0': exit } # Start oprion common.choose_by_dic(dic_function, table)
def start_module(): """ Starts this module and displays its temp_sales_idmenu. * User can access default special features from here. * User can go back to main menu from here. Returns:` None """ while True: # List of available option list_options = ['get_the_last_buyer_name', 'get_the_last_buyer_id', 'Remove employee', 'Update employee', 'Get oldest employee', 'Get employee with age closest to average'] # printing menu ui.print_menu("Human resources manager", list_options, "(0) Main menu") # Dict of available option to start equal function dic_function = {'1': get_the_last_buyer_name, '2': get_the_last_buyer_id, '3': print('nie zrobione'), '4': print('nie zrobione'), '5': print('nie zrobione'), '6': print('nie zrobione'), '0': exit} # Start option common.choose_by_dic(dic_function, table) # your code # your code pass
def start_module(): """ Starts this module and displays its menu. * User can access default special features from here. * User can go back to main menu from here. Returns: None """ # you code while True: # List of available option list_options = [ "Show table", "Add", "Remove", "Update", "The biggest sell in this year", "Average amount" ] # printing menu ui.print_menu("Accounting", list_options, "Main menu press 0") # Dick of available option to start equal function dic_function = { '1': show_table, "2": add, "3": remove, "4": update, "5": which_year_max, "6": avg_amount, '0': exit } # Start oprion common.choose_by_dic(dic_function, table)
def start_module(): """ Starts this module and displays its menu. * User can access default special features from here. * User can go back to main menu from here. Returns: None """ while True: # List of available option list_options = [ "Show table", "Add", "Remove", "Update", "Get Available items", "Get average durability by manufacturers" ] # printing menu ui.print_menu("Inventory", list_options, "Main menu press 0") # Dick of available option to start equal function dic_function = { '1': show_table, "2": add, "3": remove, "4": update, "5": get_available_items, "6": get_average_durability_by_manufacturers, '0': exit } # Start oprion common.choose_by_dic(dic_function, table)