Ejemplo n.º 1
0
def prompt_mode():
    initialize_menu(run_menu_loop_mode)
    print_ascii_banner(parse_ascii_banner("time_management/banners/mode.txt"))
    return input("""
1: Time management
2: Analytics
3: Maintenance
4: Quit
""")
Ejemplo n.º 2
0
def prompt_mode():
    initialize_menu(run_menu_loop_mode, True)
    banner = os.path.join(os.path.dirname(__file__), "banners/mode.txt")
    print_ascii_banner(parse_ascii_banner(banner))
    return input("""
1: Time management
2: Analytics
3: Maintenance
4: Quit
""")
Ejemplo n.º 3
0
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.")
Ejemplo n.º 4
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.")
Ejemplo n.º 5
0
 def __run_study(self, run_menu_loop_study):
     interface_common.initialize_menu(run_menu_loop_study)
     self.interface_study.run_menu_loop_study()
Ejemplo n.º 6
0
 def __run_maint(self, run_menu_loop_maint):
     interface_common.initialize_menu(run_menu_loop_maint)
     self.interface_maint.run_menu_loop_maintenance()
Ejemplo n.º 7
0
 def __run_analytics(self, run_menu_loop_analytics):
     interface_common.initialize_menu(run_menu_loop_analytics)
     self.interface_lytics.run_menu_loop_analytics()
Ejemplo n.º 8
0
 def __run_tm(self, run_menu_loop_tm):
     interface_common.initialize_menu(run_menu_loop_tm)
     self.interface_tm.run_menu_loop_tm()
Ejemplo n.º 9
0
 def prompt_mode(self):
     interface_common.initialize_menu(self.run_menu_loop_mode, True)
     banner = os.path.join(os.path.dirname(__file__), "banners/mode.txt")
     interface_common.print_ascii_banner(interface_common.parse_ascii_banner(banner))
     return input(textwrap.dedent(InterfaceMode.__menu))