Пример #1
0
def choose():
    inputs = ui.get_inputs(["Please enter a number: "], "")
    option = inputs[0]
    if option == "1":
        os.system("clear")
        store.start_module()
    elif option == "2":
        os.system("clear")
        hr.start_module()
    elif option == "3":
        os.system("clear")
        inventory.start_module()
    elif option == "4":
        os.system("clear")
        accounting.start_module()
    elif option == "5":
        os.system("clear")
        sales.start_module()
    elif option == "6":
        os.system("clear")
        crm.start_module()
    elif option == "7":
        os.system("clear")
        data_analyser.start_module()
    elif option == "8":
        os.system("clear")
        relaxation.start_module()
    elif option == "0":
        sys.exit(0)
    else:
        raise KeyError("There is no such option.")
def choose():
    inputs = ui.get_inputs(["Please enter a number: "], "")
    option = inputs[0]
    if option == "1":
        store.start_module()
    elif option == "2":
        hr.start_module()
    elif option == "3":
        inventory.start_module()
    elif option == "4":
        accounting.start_module()
    elif option == "5":
        sales.start_module()
    elif option == "6":
        crm.start_module()
    elif option == "7":
        data_analyser.start_module()
    elif option == "0":
        sys.exit(0)
    else:
        raise KeyError("There is no such option.")