def storePassword(self):
        if(self.checkFieldsValues()):
            passwordsOpert = passwordsOperator.PasswordsOperator()
            passwordsOpert.storePassword(self.siteNameTxtBox.text(), self.emailOrUserTextBox.text(), self.passwordTextBox.text())

            self.mainScr = mainScreen.MainScreen()
            self.close()
    def deleteStoredPassword(self):
        if(self.checkFieldsValues()):
            passwordsOpert = passwordsOperator.PasswordsOperator()

            passwordDeleteResult = passwordsOpert.deletePassword(self.searchUserPasswordTextBox.text())

            if(passwordDeleteResult == "404"):
                error = QMessageBox()
                error.setText("Email/UserName didn't find")
                error.exec_()
            else:
                success = QMessageBox()
                success.setText("Password deleted successfully!")
                success.exec_()

                self.mainScr = mainScreen.MainScreen()
                self.close()
 def goBack(self):
     self.mainScr = mainScreen.MainScreen()
     self.close()
Esempio n. 4
0
import sys
from PyQt5.QtWidgets import QWidget, QPushButton, QApplication

import mainScreen

if (__name__ == "__main__"):
    app = QApplication(sys.argv)
    mainScr = mainScreen.MainScreen()

    sys.exit(app.exec_())