def main(conn): global c global mooct mooct = 0 c = conn.cursor() #Create cursor to database while True: conn.commit() adminmenus.clearscreen() adminmenus.printmainmenu() selection = input() if selection == '0': print("Goodbye!") sys.exit(0) elif selection == '5': adminmenus.suppliermenu(c) continue elif selection == '4': adminmenus.inventorymenu(c) continue elif selection == '3': usermenus.reactionmenu(c) elif selection == '2': usermenus.compoundmenu(c) elif selection == '1': usermenus.labmenu(c) elif selection == 'moo': if mooct == 0: print("This program has no super cow powers. Sorry") mooct += 1 elif mooct == 1: print("There are no super cow powers in this program!") mooct += 1 elif mooct == 2: print("I swear, there are no cow powers here") mooct += 1 elif mooct == 3: print( "Additional moos may cause the program to terminate unexpectedly. Please, think of the children!" ) mooct += 1 else: moo.moo() sys.exit(0) else: print("Unrecognized option!") print("Hit ENTER to return to menu: ", end="") placeholder = input()
def main(conn): global c global mooct mooct = 0 c = conn.cursor() #Create cursor to database while True: conn.commit() adminmenus.clearscreen() adminmenus.printmainmenu() selection = input() if selection == '0': print("Goodbye!") sys.exit(0) elif selection == '5': adminmenus.suppliermenu(c) continue elif selection == '4': adminmenus.inventorymenu(c) continue elif selection == '3': usermenus.reactionmenu(c) elif selection == '2': usermenus.compoundmenu(c) elif selection == '1': usermenus.labmenu(c) elif selection == 'moo': if mooct==0: print("This program has no super cow powers. Sorry") mooct += 1 elif mooct==1: print("There are no super cow powers in this program!") mooct += 1 elif mooct==2: print("I swear, there are no cow powers here") mooct += 1 elif mooct==3: print("Additional moos may cause the program to terminate unexpectedly. Please, think of the children!") mooct += 1 else: moo.moo() sys.exit(0) else: print("Unrecognized option!") print("Hit ENTER to return to menu: ", end = "") placeholder = input()
def _easter(args): if 'action' in args and args['action'] == 'moo': import moo moo.moo(args)
def result(): global years_ global beef_ results = moo(beef_, years_) return render_template('result.html', results=results)
#Creates window, and clock, sets Icon # screen = pygame.display.set_mode((screenWidth, screenHeight )) screen = pygame.display.set_mode((screenWidth, screenHeight ), pygame.FULLSCREEN) pygame.display.set_caption("Dungeon Taker: OTA") icon = pygame.image.load('images/oubliette.png') pygame.display.set_icon(icon) clock = pygame.time.Clock() # STATE state = "INTRO" running = True while running: if state == "INTRO": state = game_intro.intro_pg() print(state) if state == "START_SCREEN": state = start_page.button_intro() if state == "VILLAGE": state = moo.moo() if state == "MAIN": state = dungeon_trav.main() print(state) if state == "CREDITS": state = credit_Page.credit_move() if state == "END": print("Nope") quit()