예제 #1
0
    def registerForm():
        form = RegisterForm()
        form.fillTheForm()

        Common.clearTerminal()

        if form.validation():
            response = Connection.registerRequest(form.getData())
            successful = response.get("successful")
            message = response.get("message")

            if successful:
                Common.printPositiveText(message)
            else:
                Common.printNegativeText(message)
        else:
            Common.printNegativeText(form.getValidationMessage())

        Common.programSleep()
예제 #2
0
    def loginForm():
        form = LoginForm()
        form.fillTheForm()

        Common.clearTerminal()

        if form.validation():
            response = Connection.loginRequest(form.getData())
            successful = response.get("successful")
            message = response.get("message")

            if successful:
                Common.printPositiveText(message)
                Common.programSleep()

                LobbyView.view()
            else:
                Common.printNegativeText(message)
        else:
            Common.printNegativeText(form.getValidationMessage())

        Common.programSleep()
예제 #3
0
 def getViewTitles():
     Common.clearTerminal()
     Common.printStandartText(ViewTextConstants.REGISTER_TITLE)
예제 #4
0
 def clear():
     Common.clearTerminal()
     ProfileController.getViewTitles()
예제 #5
0
 def getViewTitles():
     Common.clearTerminal()
     Common.printStandartText(
         f"Chat area with {programLocation.getLocationParameters().get('chatWith')}, say /help for help\n"
     )
예제 #6
0
 def clear():
     Common.clearTerminal()
     ChatController.getViewTitles()
     ChatController.stream()
예제 #7
0
 def getViewTexts():
     Common.clearTerminal()
     Common.printStandartText(ViewTextConstants.ACCESS_TITLE)
     Common.printStandartText(ViewTextConstants.ACCESS_SUBTITLE)
예제 #8
0
 def clearCommand(**kwargs):
     Common.clearTerminal()
     kwargs.get("controller").clear()
예제 #9
0
 def clear():
     Common.clearTerminal()
     LobbyController.getViewTitles()
 def getViewTitles():
     Common.clearTerminal()
     Common.printStandartText(ViewTextConstants.NOTIFICATION_TITLE)
 def clear():
     Common.clearTerminal()
     NotificationController.getViewTitles()