prompts for master password and displays all saved passwords if correct.
()
| 88 | |
| 89 | # ---------------------------- VIEW ALL PASSWORDS ------------------------------- # |
| 90 | def view_all_passwords(): |
| 91 | """prompts for master password and displays all saved passwords if correct.""" |
| 92 | password = simpledialog.askstring("Master Password", "Please enter the master password:", show='*') |
| 93 | |
| 94 | if password == MASTER_PASSWORD: |
| 95 | show_passwords_window() |
| 96 | elif password is not None: # avoids error message if user clicks cancel |
| 97 | messagebox.showerror("Incorrect Password", "The master password you entered is incorrect.") |
| 98 | |
| 99 | def show_passwords_window(): |
| 100 | """creates a new window to display all passwords in a table.""" |
nothing calls this directly
no test coverage detected