<reponame>jackm245/Riemann-Hypothesis
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from .user_interface import Ui_LoginScreen, Ui_SignUpScreen, Ui_ForgottenPasswordScreen, Ui_ForgottenPassword2Screen, Ui_ResetPasswordScreen, Ui_ResetPassword2Screen


class ResetPassword2(QtWidgets.QDialog):

    def __init__(self):
        super(ResetPassword2, self).__init__()
        self.ui = Ui_ResetPassword2Screen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.show()


class ResetPassword(QtWidgets.QDialog):

    def __init__(self):
        super(ResetPassword, self).__init__()
        self.ui = Ui_ResetPasswordScreen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.ui.LoginTab.clicked.connect(self.goto_login)
        self.ui.SignUpTab.clicked.connect(self.goto_signup)
        self.ui.ForgottenPasswordTab.clicked.connect(self.goto_forgotten_password)

        self.ui.SubmitButton.clicked.connect(self.submit)

        self.show()

    def goto_login(self):
        self.login = Login()
        self.hide()

    def goto_signup(self):
        self.signup = SignUp()
        self.hide()

    def goto_forgotten_password(self):
        self.forgotten_password = <PASSWORD>()
        self.hide()

    def submit(self):
        # Confirm Sign In
        self.reset_password_2 = <PASSWORD>()
        self.hide()


class ForgottenPassword2(QtWidgets.QDialog):

    def __init__(self):
        super(ForgottenPassword2, self).__init__()
        self.ui = Ui_ForgottenPassword2Screen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.ui.LoginTab.clicked.connect(self.goto_login)
        self.ui.SignUpTab.clicked.connect(self.goto_signup)
        self.ui.ResetPasswordTab.clicked.connect(self.goto_reset_password)

        self.ui.SubmitButton.clicked.connect(self.submit)

        self.show()

    def goto_login(self):
        self.login = Login()
        self.hide()

    def goto_signup(self):
        self.signup = SignUp()
        self.hide()

    def goto_reset_password(self):
        self.reset_password = <PASSWORD>()
        self.hide()

    def submit(self):
        # Check verification code
        self.reset_password_2 = ResetPassword2()
        self.hide()


class ForgottenPassword(QtWidgets.QDialog):

    def __init__(self):
        super(ForgottenPassword, self).__init__()
        self.ui = Ui_ForgottenPasswordScreen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.ui.LoginTab.clicked.connect(self.goto_login)
        self.ui.SignUpTab.clicked.connect(self.goto_signup)
        self.ui.ResetPasswordTab.clicked.connect(self.goto_reset_password)

        self.ui.SubmitButton.clicked.connect(self.submit)

        self.show()

    def goto_login(self):
        self.login = Login()
        self.hide()

    def goto_signup(self):
        self.signup = SignUp()
        self.hide()

    def goto_reset_password(self):
        self.reset_password = <PASSWORD>()
        self.hide()

    def submit(self):
        # Send Email
        self.forgotten_password_2 = ForgottenPassword2()
        self.hide()


class SignUp(QtWidgets.QDialog):

    def __init__(self):
        super(SignUp, self).__init__()
        self.ui = Ui_SignUpScreen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.ui.LoginTab.clicked.connect(self.goto_login)
        self.ui.ForgottenPasswordTab.clicked.connect(self.goto_forgotten_password)
        self.ui.ResetPasswordTab.clicked.connect(self.goto_reset_password)

        self.show()

    def goto_login(self):
        self.login = Login()
        self.hide()

    def goto_forgotten_password(self):
        self.forgotten_password = Forgot<PASSWORD>()
        self.hide()

    def goto_reset_password(self):
        self.reset_password = <PASSWORD>()
        self.hide()


class Login(QtWidgets.QDialog):

    def __init__(self):
        super(Login, self).__init__()
        self.ui = Ui_LoginScreen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.ui.SignUpTab.clicked.connect(self.goto_signup)
        self.ui.ForgottenPasswordTab.clicked.connect(self.goto_forgotten_password)
        self.ui.ResetPasswordTab.clicked.connect(self.goto_reset_password)

        self.ui.SubmitButton.clicked.connect(self.submit)

        self.show()

    def goto_signup(self):
        self.signup = SignUp()
        self.hide()

    def goto_forgotten_password(self):
        self.forgotten_password = <PASSWORD>()
        self.hide()

    def goto_reset_password(self):
        self.reset_password = <PASSWORD>()
        self.hide()

    def submit(self):
        username = self.ui.UsernameInput.text()
        password  = self.ui.PasswordInput.text()
        self.ui.ErrorLabel.setText("Error")

import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from .user_interface import Ui_LoginScreen, Ui_SignUpScreen, Ui_ForgottenPasswordScreen, Ui_ForgottenPassword2Screen, Ui_ResetPasswordScreen, Ui_ResetPassword2Screen


class ResetPassword2(QtWidgets.QDialog):

    def __init__(self):
        super(ResetPassword2, self).__init__()
        self.ui = Ui_ResetPassword2Screen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.show()


class ResetPassword(QtWidgets.QDialog):

    def __init__(self):
        super(ResetPassword, self).__init__()
        self.ui = Ui_ResetPasswordScreen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.ui.LoginTab.clicked.connect(self.goto_login)
        self.ui.SignUpTab.clicked.connect(self.goto_signup)
        self.ui.ForgottenPasswordTab.clicked.connect(self.goto_forgotten_password)

        self.ui.SubmitButton.clicked.connect(self.submit)

        self.show()

    def goto_login(self):
        self.login = Login()
        self.hide()

    def goto_signup(self):
        self.signup = SignUp()
        self.hide()

    def goto_forgotten_password(self):
        self.forgotten_password = <PASSWORD>()
        self.hide()

    def submit(self):
        # Confirm Sign In
        self.reset_password_2 = <PASSWORD>()
        self.hide()


class ForgottenPassword2(QtWidgets.QDialog):

    def __init__(self):
        super(ForgottenPassword2, self).__init__()
        self.ui = Ui_ForgottenPassword2Screen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.ui.LoginTab.clicked.connect(self.goto_login)
        self.ui.SignUpTab.clicked.connect(self.goto_signup)
        self.ui.ResetPasswordTab.clicked.connect(self.goto_reset_password)

        self.ui.SubmitButton.clicked.connect(self.submit)

        self.show()

    def goto_login(self):
        self.login = Login()
        self.hide()

    def goto_signup(self):
        self.signup = SignUp()
        self.hide()

    def goto_reset_password(self):
        self.reset_password = <PASSWORD>()
        self.hide()

    def submit(self):
        # Check verification code
        self.reset_password_2 = ResetPassword2()
        self.hide()


class ForgottenPassword(QtWidgets.QDialog):

    def __init__(self):
        super(ForgottenPassword, self).__init__()
        self.ui = Ui_ForgottenPasswordScreen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.ui.LoginTab.clicked.connect(self.goto_login)
        self.ui.SignUpTab.clicked.connect(self.goto_signup)
        self.ui.ResetPasswordTab.clicked.connect(self.goto_reset_password)

        self.ui.SubmitButton.clicked.connect(self.submit)

        self.show()

    def goto_login(self):
        self.login = Login()
        self.hide()

    def goto_signup(self):
        self.signup = SignUp()
        self.hide()

    def goto_reset_password(self):
        self.reset_password = <PASSWORD>()
        self.hide()

    def submit(self):
        # Send Email
        self.forgotten_password_2 = ForgottenPassword2()
        self.hide()


class SignUp(QtWidgets.QDialog):

    def __init__(self):
        super(SignUp, self).__init__()
        self.ui = Ui_SignUpScreen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.ui.LoginTab.clicked.connect(self.goto_login)
        self.ui.ForgottenPasswordTab.clicked.connect(self.goto_forgotten_password)
        self.ui.ResetPasswordTab.clicked.connect(self.goto_reset_password)

        self.show()

    def goto_login(self):
        self.login = Login()
        self.hide()

    def goto_forgotten_password(self):
        self.forgotten_password = Forgot<PASSWORD>()
        self.hide()

    def goto_reset_password(self):
        self.reset_password = <PASSWORD>()
        self.hide()


class Login(QtWidgets.QDialog):

    def __init__(self):
        super(Login, self).__init__()
        self.ui = Ui_LoginScreen()
        self.ui.setupUi(self)
        self.setFixedWidth(1340)
        self.setFixedHeight(720)

        self.ui.SignUpTab.clicked.connect(self.goto_signup)
        self.ui.ForgottenPasswordTab.clicked.connect(self.goto_forgotten_password)
        self.ui.ResetPasswordTab.clicked.connect(self.goto_reset_password)

        self.ui.SubmitButton.clicked.connect(self.submit)

        self.show()

    def goto_signup(self):
        self.signup = SignUp()
        self.hide()

    def goto_forgotten_password(self):
        self.forgotten_password = <PASSWORD>()
        self.hide()

    def goto_reset_password(self):
        self.reset_password = <PASSWORD>()
        self.hide()

    def submit(self):
        username = self.ui.UsernameInput.text()
        password  = self.ui.PasswordInput.text()
        self.ui.ErrorLabel.setText("Error")
# Confirm Sign In # Check verification code # Send Email