def start():
    view.startView()
    command = input('Press y to show all details\n')
    if command == 'y':
        return showAll()
    else:
        return view.endView()
Beispiel #2
0
def start():
    view.startView()
    user_input = input()
    if input == 'y':
        return showAll()
    else:
        return view.endView()
Beispiel #3
0
def start():
    view.startView()
    option = input()
    if option == 'y':
        return showAll()
    else:
        return view.endView()
Beispiel #4
0
def start():
    view.startView()
    inputted = input()
    if inputted == 'y':
        return showAll()
    else:
        return view.endView()
def start():
    view.startView()
    value = input("Insert value: ")
    if value == 'y':
        return showAll()
    else:
        return view.endView()
Beispiel #6
0
def start():
    view.startView()
    inp = input()
    if inp == 'y':
        startMaze()
        csvPrint()
    else:
        view.endView()
Beispiel #7
0
def start():
	# crude menu...
    view.startView()
    inp = input()
    if inp == 'y':
        return showAll()
    else:
        return view.endView()
Beispiel #8
0
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()
Beispiel #10
0
def start():
    view.startView()
    user_input = input()
    if user_input == 's':
        return showAll()
    elif user_input == 'a':
        return addUser()
    else:
        return view.endView()
Beispiel #11
0
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()
Beispiel #12
0
def start():
    view.startView()
    show_trends()
    view.endView()
Beispiel #13
0
            return

        if self.model.isMovable(direction):
            print("move with ", direction)
            self.model.field, score = functions[direction](self.model.field,
                                                           self.model.N)
            self.model.score += score
            self.model.generate(2)
            self.model.tries += 1

        if self.model.isFinished():
            self.gameOver()
            self.mainView.gameOver()

    def gameOver(self):
        print("Game Over!!!!!!!!!!!!")


if __name__ == '__main__':
    import sys
    from view import mainView, startView
    from PyQt5.QtWidgets import QApplication
    from model import Model
    app = QApplication(sys.argv)
    model = Model()
    main = mainView()
    start = startView()
    controller = Controller(model, start, main)
    model.register(main)
    start.show()
    sys.exit(app.exec_())
Beispiel #14
0
def start():
    view.startView()
    input_option = input('Enter [INR / EUR / CAD / AUD / JPY / ALL] :')
    return showPrice(input_option)