Esempio n. 1
0
def main():
    displayMenu()
Esempio n. 2
0
#!/usr/bin/env python3
""" Author: Aaron Baumgarner
    Created: 12/14/20
    Updated: 12/14/20
    Notes: Simple main to run all files needed for simple text incryption and decryption

"""
import menu

encrypt = []
decrypt = []
""" Infanate loop to run the program until the user selects the 0 exit option """
while True:
    menu.displayMenu()
    option = int(menu.promptMenuOption())
    if option == 2:
        encrypt = menu.executeOption(option, encrypt, decrypt)
    elif option == 3:
        decrypt = menu.executeOption(option, encrypt, decrypt)
    else:
        menu.executeOption(option, encrypt, decrypt)
Esempio n. 3
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Main menu
'''
import menu as m

countOnce = 0
filename = "phil.txt"
while True:
    choice, countOnce = m.displayMenu(countOnce)
Esempio n. 4
0
# main script made by Matej Majtan and modified by Johan Emil Levin-Jensen

# Global variables
# array of main menu items
main_m = np.array(["Configure beam", "Configure loads",
                   "Save beam and loads", "Load beam and loads", "Generate plot", "Quit"])
# variables storing beam settings
bl = 0.
bs = "both"
# empty array with zero rows and two columns used for storing the loads and its positions
l = np.empty(shape=[0, 2], dtype=float)

# main loop start
while True:
    opt = menu.displayMenu(main_m)

    # Configure beam option chosen
    if opt == 1:
        while True:
            # if any loads are configured, asks to clear them before procceding (makes
            # sure no load is outside beam)
            if l.any():
                print("Loads are configured and will have to be cleared to continue, do you want to proceed?")
                lc_m = menu.displayMenu(["yes", "no"])
                if lc_m == 1:
                    l = np.empty(shape=[0, 2], dtype=float)
                if lc_m == 2:
                    break
            # ask for beam length until a positive value is entered
            bl = 0
Esempio n. 5
0
from search import search
from delete import delete
from menu import displayMenu

field = ['name', 'age', 'branch', 'year', 'email', 'roll']
database = 'student.csv'

# To create and run the file for the first time
# with open(database, "a", encoding="utf-8") as f:
#     writer = csv.writer(f)
#     writer.writerow(field)
#
# f.close()

while True:
    displayMenu()

    choice = int(input("Enter your choice: "))
    if choice == 1:
        add()

    elif choice == 2:
        print("\n-------------------- Search Details --------------------")
        roll = input("Enter roll no. to search: ")
        search(roll)
        x = input("\nPress any key to continue.....")

    elif choice == 3:
        show()

    elif choice == 4: