def fileUnlockedEvent(self, success, decryptedFileName): if success == 'True': QMessageBox.information(self, __appname__, "File Unlocked Successfully.") else: os.remove(decryptedFileName) EncryptedFile.replaceWithUnlockDialog(EncryptedFile.CALLER_LOCATION, decryptedFileName) QMessageBox.information(self, __appname__, "Wrong password. Couldn't unlock file.")
def fileUnlockedEvent(self, success, decryptedFileName): if success == 'True': QMessageBox.information(self, __appname__, "File Unlocked Successfully.") else: os.remove(decryptedFileName) EncryptedFile.replaceWithUnlockDialog( EncryptedFile.CALLER_LOCATION, decryptedFileName) QMessageBox.information(self, __appname__, "Wrong password. Couldn't unlock file.")