Skip to content

Commit 5c8da92

Browse files
committed
GUI implementation complete
1 parent 7fb586a commit 5c8da92

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

Password-Manager-GUI/passwords.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
from tkinter import *
2+
import sqlite3
3+
from tkinter import messagebox
4+
5+
root = Tk()
6+
root.title("Password Manager")
7+
root.geometry("500x400")
8+
root.minsize(600, 400)
9+
root.maxsize(600, 400)
10+
11+
frame = Frame(root, bg="#774A9F", bd=5)
12+
frame.place(relx=0.50, rely=0.50, relwidth=0.98, relheight=0.45, anchor = "n")
13+
14+
#Create Text Boxes
15+
website = Entry(root, width=30)
16+
website.grid(row=1, column=1, padx=20,pady=5)
17+
username = Entry(root, width=30)
18+
username.grid(row=2, column=1, padx=20,pady=5)
19+
password = Entry(root, width=30)
20+
password.grid(row=3, column=1, padx=20,pady=5)
21+
22+
#Create Text Box Labels
23+
website_label = Label(root, text = "Website:")
24+
website_label.grid(row=1, column=0)
25+
username_label = Label(root, text = " Username:")
26+
username_label.grid(row=2, column=0)
27+
password_label = Label(root, text = "Password:")
28+
password_label.grid(row=3, column=0)
29+
30+
31+
#Create Buttons
32+
submit_btn = Button(root, text = "Add Password")
33+
submit_btn.grid(row = 5, column=1, pady=5, padx=15, ipadx=35)
34+
query_btn = Button(root, text = "Show All")
35+
query_btn.grid(row=6, column=1, pady=5, padx=5, ipadx=35)
36+
37+
#Create a Label to show stored passwords
38+
global query_label
39+
query_label = Label(frame, anchor="nw", justify="left")
40+
query_label.place(relwidth=1, relheight=1)
41+
42+
def main():
43+
root.mainloop()
44+
45+
if __name__ == '__main__':
46+
main()

0 commit comments

Comments
 (0)