fixed some auto-close issue

This commit is contained in:
Abbhiishek 2022-10-01 10:14:49 +05:30
parent 94771a08fa
commit 8620aed7ad

View File

@ -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()