def start(): view.startView() inp = input() if inp == 'y': startMaze() csvPrint() else: view.endView()
def start(): view.startView() user_input = input() if input == 'y': return showAll() else: return view.endView()
def start(): view.startView() command = input('Press y to show all details\n') if command == 'y': return showAll() else: return view.endView()
def start(): view.startView() inputted = input() if inputted == 'y': return showAll() else: return view.endView()
def start(): view.startView() option = input() if option == 'y': return showAll() else: return view.endView()
def start(): view.startView() value = input("Insert value: ") if value == 'y': return showAll() else: return view.endView()
def start(): # crude menu... view.startView() inp = input() if inp == 'y': return showAll() else: return view.endView()
def start(): view.startView() input = raw_input()[0].lower() print(input == 'y') if input == 'y': return showAll() else: return view.endView()
def start(): view.startView() input = raw_input() if input == '1': return showAll() elif input == '2': return showContactInfo() else: return view.endView()
def start(): view.startView() user_input = input() if user_input == 's': return showAll() elif user_input == 'a': return addUser() else: return view.endView()
def start(): view.startView() ## input = raw_input() ##Seems Py 2 vIn = input(" J Response: ") vIn.upper() # if input == 'y': if vIn == 'y': return showAll() else: return view.endView()
def start(): view.startView() show_trends() view.endView()
# ___\ \ \___ _ __ /\_\ ____/\ \__/ ___\//\ \ __ ___ # /'___\ \ _ `\/\`'__\/\ \ /',__\ \ ,__\/ __`\\ \ \ /'__`\ /' _ `\ # /\ \__/\ \ \ \ \ \ \/ \ \ \/\__, `\ \ \_/\ \L\ \\_\ \_/\ \L\.\_/\ \/\ \ # \ \____\\ \_\ \_\ \_\ \ \_\/\____/\ \_\\ \____//\____\ \__/.\_\ \_\ \_\ # \/____/ \/_/\/_/\/_/ \/_/\/___/ \/_/ \/___/ \/____/\/__/\/_/\/_/\/_/ # from model import Person import view def showAll(): #gets all Person objects people_in_db = Person.getAll() #calls view return view.showAllView(people_in_db) def start(): # crude menu... view.startView() inp = input() if inp == 'y': return showAll() else: return view.endView() if __name__ == "__main__": #running controller function start() view.endView()