예제 #1
0
def main(data):
    """ Main function with data """
    print("\n*****  Targets chart categories  *****")
    print("1) Frequency")
    print("2) Success Rate")
    print("3) Compare highest victims by target")
    print("""Type "BACK" return to main menu""")
    print("""Type "EXIT" to terminate program""")

    choice = input("Type number of chart which you want : ")

    if choice.lower() == "exit":
        parent.do_exit()
    if choice.lower() == "back":
        parent.menu_main(data)

    choice = int(choice)

    if choice == 1:
        target = get_target()
        if target == 0:
            overall.frequency(data)
        frequency.main(data, target)
    elif choice == 2:
        target = get_target()
        if target == 0:
            overall.success(data)
        success.main(data, target)
    elif choice == 3:
        overall.victims(data)
    else:
        print("\n***** Invalid choice! ******\n")
        main(data)
예제 #2
0
def main(data):
    """ Main function with data """
    print("*****  Weapons chart categories  *****")
    print("1) Frequency")
    print("2) Success Rate")
    print("""Type "BACK" return to main menu""")
    print("""Type "EXIT" to terminate program""")

    choice = input("Type number of chart which you want : ")

    if choice.lower() == "exit":
        parent.do_exit()
    if choice.lower() == "back":
        parent.menu_main(data)

    choice = int(choice)

    if choice == 1:
        weapon = get_weapon()
        if weapon == 0:
            overall.frequency(data)
        frequency.main(data, weapon)
    elif choice == 2:
        weapon = get_weapon()
        if weapon == 0:
            overall.success(data)
        success.main(data, weapon)
    else:
        print("\n***** Invalid choice! ******\n")
        main(data)
예제 #3
0
def main(data):
    """ Main function with data """
    print("\n*****  Heat maps chart categories  *****")
    print("1) Heat map by countries")
    print("""Type "BACK" return to main menu""")
    print("""Type "EXIT" to terminate program""")

    choice = input("Type number of chart which you want : ")

    if choice.lower() == "exit":
        parent.do_exit()
    if choice.lower() == "back":
        parent.menu_main(data)

    choice = int(choice)

    if choice == 1:
        map_country(data)