import sys

from PyQt5 import QtWidgets

import windows.menu_window as menu
from ui.login import Ui_Login


class Login(QtWidgets.QMainWindow):
    def __init__(self):
        super(Login, self).__init__()
        self.ui = Ui_Login()
        self.ui.setupUi(self)
        
        self.ui.pushButton_menu.setDisabled(True)
        self.ui.pushButton_menu.clicked.connect(self.start_menu)
        self.ui.pushButton_exit.clicked.connect(self.close)

        self.ui.lineEdit_db.setText("face_rec_app")
        self.ui.lineEdit_user.setText("postgres")
        self.ui.lineEdit_password.setText("1234")
        self.ui.lineEdit_host.setText("127.0.0.1")

    def start_menu(self):
        info = []
        info.append(self.ui.lineEdit_db.text())
        info.append(self.ui.lineEdit_user.text())
        info.append(self.ui.lineEdit_password.text())
        info.append(self.ui.lineEdit_host.text())
        self.open_menu = menu.Menu(info)
        self.open_menu.show()
        self.close()


if __name__ == '__main__':
    app = QtWidgets.QApplication([])
    application = Login()
    application.show()

    sys.exit(app.exec())

9707000f1245d9e24a5314f1def23eaa87fea667
<mask token>


class Login(QtWidgets.QMainWindow):
    <mask token>
    <mask token>


<mask token>

<mask token>


class Login(QtWidgets.QMainWindow):

    def __init__(self):
        super(Login, self).__init__()
        self.ui = Ui_Login()
        self.ui.setupUi(self)
        self.ui.pushButton_menu.setDisabled(True)
        self.ui.pushButton_menu.clicked.connect(self.start_menu)
        self.ui.pushButton_exit.clicked.connect(self.close)
        self.ui.lineEdit_db.setText('face_rec_app')
        self.ui.lineEdit_user.setText('postgres')
        self.ui.lineEdit_password.setText('1234')
        self.ui.lineEdit_host.setText('127.0.0.1')

    def start_menu(self):
        info = []
        info.append(self.ui.lineEdit_db.text())
        info.append(self.ui.lineEdit_user.text())
        info.append(self.ui.lineEdit_password.text())
        info.append(self.ui.lineEdit_host.text())
        self.open_menu = menu.Menu(info)
        self.open_menu.show()
        self.close()


<mask token>

<mask token>


class Login(QtWidgets.QMainWindow):

    def __init__(self):
        super(Login, self).__init__()
        self.ui = Ui_Login()
        self.ui.setupUi(self)
        self.ui.pushButton_menu.setDisabled(True)
        self.ui.pushButton_menu.clicked.connect(self.start_menu)
        self.ui.pushButton_exit.clicked.connect(self.close)
        self.ui.lineEdit_db.setText('face_rec_app')
        self.ui.lineEdit_user.setText('postgres')
        self.ui.lineEdit_password.setText('1234')
        self.ui.lineEdit_host.setText('127.0.0.1')

    def start_menu(self):
        info = []
        info.append(self.ui.lineEdit_db.text())
        info.append(self.ui.lineEdit_user.text())
        info.append(self.ui.lineEdit_password.text())
        info.append(self.ui.lineEdit_host.text())
        self.open_menu = menu.Menu(info)
        self.open_menu.show()
        self.close()


if __name__ == '__main__':
    app = QtWidgets.QApplication([])
    application = Login()
    application.show()
    sys.exit(app.exec())

import sys
from PyQt5 import QtWidgets
import windows.menu_window as menu
from ui.login import Ui_Login


class Login(QtWidgets.QMainWindow):

    def __init__(self):
        super(Login, self).__init__()
        self.ui = Ui_Login()
        self.ui.setupUi(self)
        self.ui.pushButton_menu.setDisabled(True)
        self.ui.pushButton_menu.clicked.connect(self.start_menu)
        self.ui.pushButton_exit.clicked.connect(self.close)
        self.ui.lineEdit_db.setText('face_rec_app')
        self.ui.lineEdit_user.setText('postgres')
        self.ui.lineEdit_password.setText('1234')
        self.ui.lineEdit_host.setText('127.0.0.1')

    def start_menu(self):
        info = []
        info.append(self.ui.lineEdit_db.text())
        info.append(self.ui.lineEdit_user.text())
        info.append(self.ui.lineEdit_password.text())
        info.append(self.ui.lineEdit_host.text())
        self.open_menu = menu.Menu(info)
        self.open_menu.show()
        self.close()


if __name__ == '__main__':
    app = QtWidgets.QApplication([])
    application = Login()
    application.show()
    sys.exit(app.exec())

import sys

from PyQt5 import QtWidgets

import windows.menu_window as menu
from ui.login import Ui_Login


class Login(QtWidgets.QMainWindow):
    def __init__(self):
        super(Login, self).__init__()
        self.ui = Ui_Login()
        self.ui.setupUi(self)
        
        self.ui.pushButton_menu.setDisabled(True)
        self.ui.pushButton_menu.clicked.connect(self.start_menu)
        self.ui.pushButton_exit.clicked.connect(self.close)

        self.ui.lineEdit_db.setText("face_rec_app")
        self.ui.lineEdit_user.setText("postgres")
        self.ui.lineEdit_password.setText("1234")
        self.ui.lineEdit_host.setText("127.0.0.1")

    def start_menu(self):
        info = []
        info.append(self.ui.lineEdit_db.text())
        info.append(self.ui.lineEdit_user.text())
        info.append(self.ui.lineEdit_password.text())
        info.append(self.ui.lineEdit_host.text())
        self.open_menu = menu.Menu(info)
        self.open_menu.show()
        self.close()


if __name__ == '__main__':
    app = QtWidgets.QApplication([])
    application = Login()
    application.show()

    sys.exit(app.exec())
