text: from PyQt5 import QtCore, QtGui, QtWidgets
  from PyQt5.QtWidgets import QMessageBox
  import PyrebaseConnector as PC
  import sys
  
  class Ui_Form(object):
      def setupUi(self, Form):
          Form.setObjectName("Form")
          Form.resize(577, 502)
          Form.setFixedSize(577, 502)
          font = QtGui.QFont()
          font.setFamily("KacstOne")
          font.setBold(True)
          font.setWeight(75)
          self.verticalLayoutWidget = QtWidgets.QWidget(Form)
          self.verticalLayoutWidget.setGeometry(QtCore.QRect(120, 200, 331, 121))
          self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
          self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
          self.verticalLayout.setContentsMargins(0, 0, 0, 0)
          self.verticalLayout.setObjectName("verticalLayout")
          self.label = QtWidgets.QLabel(self.verticalLayoutWidget)
          self.label.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
          self.label.setObjectName("label")
          self.verticalLayout.addWidget(self.label)
          self.lineEdit = QtWidgets.QLineEdit(self.verticalLayoutWidget)
          self.lineEdit.setObjectName("lineEdit")
          self.verticalLayout.addWidget(self.lineEdit)
          self.label_2 = QtWidgets.QLabel(self.verticalLayoutWidget)
          self.label_2.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
          self.label_2.setObjectName("label_2")
          self.verticalLayout.addWidget(self.label_2)
          self.lineEdit_2 = QtWidgets.QLineEdit(self.verticalLayoutWidget)
          self.lineEdit_2.setObjectName("lineEdit_2")
          self.lineEdit_2.setEchoMode(QtWidgets.QLineEdit.Password)
          self.verticalLayout.addWidget(self.lineEdit_2)
          self.label_3 = QtWidgets.QLabel(Form)
          self.label_3.setGeometry(QtCore.QRect(10, 10, 561, 131))
          self.label_3.setText("")
          self.label_3.setPixmap(QtGui.QPixmap("icons/bibworld.png"))
          self.label_3.setScaledContents(True)
          self.label_3.setAlignment(QtCore.Qt.AlignCenter)
          self.label_3.setObjectName("label_3")
  
          self.pushButton_3 = QtWidgets.QPushButton(Form)
          self.pushButton_3.setGeometry(QtCore.QRect(235, 340, 100, 31))
          self.pushButton_3.setObjectName("pushButton_3")
          self.pushButton_3.setFont(font)
          self.pushButton_3.setStyleSheet('background-color:#1f4c73')
  
          self.pushButton_2 = QtWidgets.QPushButton(Form)
          self.pushButton_2.setGeometry(QtCore.QRect(350, 340, 100, 31))
          self.pushButton_2.setObjectName("pushButton_2")
          self.pushButton_2.setFont(font)
          self.pushButton_2.setStyleSheet('background-color:#1f4c73')
  
          self.pushButton = QtWidgets.QPushButton(Form)
          self.pushButton.setGeometry(QtCore.QRect(120, 340, 100, 31))
          self.pushButton.setObjectName("pushButton")
          self.pushButton.setFont(font)
          self.pushButton.setStyleSheet('background-color:#1f4c73')
  
          self.label.setFont(font)
          self.label_2.setFont(font)
  
          self.retranslateUi(Form)
          QtCore.QMetaObject.connectSlotsByName(Form)
  
      def messageBox(self, textMessage, nameWin):
          infoBox = QtWidgets.QMessageBox()
          infoBox.setIcon(QtWidgets.QMessageBox.Information)
          infoBox.setText(textMessage)
          infoBox.setWindowTitle(nameWin)
          infoBox.setStandardButtons(QtWidgets.QMessageBox.Ok)
          infoBox.exec_()
  
      def changePass(self):
          erroVazio = 0
          if self.lineEdit.text() == '':
              self.messageBox('Você deve inserir seu email!', 'Erro')
              erroVazio = 1
          if erroVazio == 0:
              response = PC.pc.changePassword(self.lineEdit.text())
              if response == 'Ok':
                  self.messageBox('Enviamos um email para você com as instruções para cadastrar uma nova senha!', 'Alerta')
              else:
                  self.messageBox('Email não existe!', 'Erro')
  
      def retranslateUi(self, Form):
          _translate = QtCore.QCoreApplication.translate
          Form.setWindowTitle(_translate("Form", "Form"))
          self.label.setText(_translate("Form", "E-mail"))
          self.label_2.setText(_translate("Form", "Senha"))
          self.pushButton_3.setText(_translate("Form", "Recuperar\nSenha"))
          self.pushButton_3.clicked.connect(self.changePass)
          self.pushButton_2.setText(_translate("Form", "Cadastre-se"))
          self.pushButton.setText(_translate("Form", "Login"))
  
  if __name__ == '__main__':
      app = QtWidgets.QApplication(sys.argv)
      Other = QtWidgets.QMainWindow()
      ui = Ui_Form()
      ui.setupUi(Other)
      Other.show()
      sys.exit(app.exec_())