def reset(self, fp):
        self.active = False

        # create and show message box detailing the location of the decrypted file
        msg = QMessageBox()
        msg.setWindowTitle('Decryption Complete')
        msg.setText('<b>The decrypted file is saved to the location:</b> <i>'+fp+'</i>')
        msg.exec_()

        # create the choose mode screen and show
        global choose_mode_screen
        choose_mode_screen = ChooseMode()
        choose_mode_screen.show()
        self.close()
    def reset(self, fp):
        # save the keyfile
        self.__saveKeyToFile()
        # set active to False so exit is allowed
        self.active = False

        # create and show message box detailing the locations of both the encrypted file and the key file
        msg = QMessageBox()
        msg.setWindowTitle('Encryption Complete')
        fp_key = fp.replace('enc-', '')
        msg.setText('<b>The encrypted file is saved to the location:</b> <i>'+fp+'</i>'
                    '<br><br><b>The Key File for decryption has been saved to the '
                    'location:</b> <i>'+fp_key.split('.')[-2]+'_key.k</i>'
                    '<br><br><span style="color:red"><b><u>DO NOT LOSE THE KEY FILE AS YOU WILL NOT '
                    'BE ABLE TO DECRYPT WITHOUT IT<u></b></span>')
        msg.exec_()

        # create the choose mode screen and show
        global choose_mode_screen
        choose_mode_screen = ChooseMode()
        choose_mode_screen.show()
        self.close()