MCPcopy Index your code
hub / github.com/geekcomputers/Python / view_all_passwords

Function view_all_passwords

Password Manager Using Tkinter/main.py:90–97  ·  view source on GitHub ↗

prompts for master password and displays all saved passwords if correct.

()

Source from the content-addressed store, hash-verified

88
89# ---------------------------- VIEW ALL PASSWORDS ------------------------------- #
90def 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
99def show_passwords_window():
100 """creates a new window to display all passwords in a table."""

Callers

nothing calls this directly

Calls 1

show_passwords_windowFunction · 0.85

Tested by

no test coverage detected