def map_choice_to_function(choice, facade):
    if choice == "0":
        to_previous_menu(facade)
    elif choice == "1":
        delete_history(facade)
    elif choice == "2":
        quit_program(facade)
    else:
        print("Choice not recognized.")
 def map_choice_to_function(self, choice):
     if choice == "0":
         interface_common.to_previous_menu()
     elif choice == "1":
         self.delete_history()
     elif choice == "2":
         interface_common.quit_program(self.notes_facade)
     else:
         print("Choice not recognized.")
def map_choice_to_function(choice, facade):
    if choice == "0":
        to_previous_menu(facade)
    elif choice == "1":
        clear_screen()
        pass
    elif choice == "2":
        quit_program(facade)
    else:
        print("Choice not recognized.")
 def map_choice_to_function(self, choice):
     if choice == "0":
         interface_common.to_previous_menu()
     elif choice == "1":
         interface_common.clear_screen()
         pass
     elif choice == "2":
         interface_common.quit_program(self.notes_facade)
     else:
         print("Choice not recognized.")
def map_choice_to_function(choice, facade):
    if choice == "1":
        initialize_menu(run_menu_loop_tm)
        run_menu_loop_tm(facade)
    elif choice == "2":
        pass
    elif choice == "3":
        initialize_menu(run_menu_loop_maintenance)
        run_menu_loop_maintenance(facade)
    elif choice == "4":
        quit_program(facade)
    else:
        print("Choice not recognized.")
Beispiel #6
0
 def map_choice_to_function(self, choice):
     if choice == "1":
         interface_common.initialize_menu(
             self.interface_tm.run_menu_loop_tm)
         self.interface_tm.run_menu_loop_tm()
     elif choice == "2":
         interface_common.initialize_menu(
             self.interface_lytics.run_menu_loop_analytics)
         self.interface_lytics.run_menu_loop_analytics()
     elif choice == "3":
         interface_common.initialize_menu(
             self.interface_maint.run_menu_loop_maintenance)
         self.interface_maint.run_menu_loop_maintenance()
     elif choice == "4":
         interface_common.quit_program(self.notes_facade)
     else:
         print("Choice not recognized.")
Beispiel #7
0
def map_choice_to_function(choice, facade):
    if choice == "0":
        to_previous_menu(facade)
    elif choice == "1":
        make_a_note(facade)
    elif choice == "2":
        set_a_task(facade)
    elif choice == "3":
        print_contents(facade)
    elif choice == "4":
        complete_task(facade)
    elif choice == "5":
        print_overdue_tasks(facade)
    elif choice == "6":
        print_scrum_notes(facade)
    elif choice == "7":
        quit_program(facade)
    else:
        print("Choice not recognized.")