diff --git a/scripts/Password Srength Checker/main.py b/scripts/Password Srength Checker/main.py index 61e53be..cf748f5 100644 --- a/scripts/Password Srength Checker/main.py +++ b/scripts/Password Srength Checker/main.py @@ -4,13 +4,6 @@ import math from tkinter import messagebox -window = tk.Tk() -window.title("Password Strength Checker") -window.geometry("400x400") -label1 = tk.Label(window, text="") -label1.place(x=200, y=275) - - def check(): if entry.get() == "": messagebox.showinfo("Error", "Password Can't be empty") @@ -29,6 +22,11 @@ def check(): fill="#de3c3c", outline="white") +window = tk.Tk() +window.title("Password Strength Checker") +window.geometry("400x400") +label1 = tk.Label(window, text="") +label1.place(x=200, y=275) head = tk.Label(window, text="Password Strength calculator", font=("helvetica", 15, "bold")) head.pack(ipadx=12, ipady=12) @@ -41,3 +39,6 @@ button = tk.Button(window, text="check", command=check) button.pack(ipadx=5, ipady=5) w = tk.Canvas(window, height=100, width=600) w.pack() + + +window.mainloop()