mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-27 14:01:12 +00:00
fixed some auto-close issue
This commit is contained in:
parent
94771a08fa
commit
8620aed7ad
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user