mirror of
https://github.com/metafy-social/python-scripts.git
synced 2025-02-25 17:38:42 +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
|
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():
|
def check():
|
||||||
if entry.get() == "":
|
if entry.get() == "":
|
||||||
messagebox.showinfo("Error", "Password Can't be empty")
|
messagebox.showinfo("Error", "Password Can't be empty")
|
||||||
@ -29,6 +22,11 @@ def check():
|
|||||||
fill="#de3c3c", outline="white")
|
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",
|
head = tk.Label(window, text="Password Strength calculator",
|
||||||
font=("helvetica", 15, "bold"))
|
font=("helvetica", 15, "bold"))
|
||||||
head.pack(ipadx=12, ipady=12)
|
head.pack(ipadx=12, ipady=12)
|
||||||
@ -41,3 +39,6 @@ button = tk.Button(window, text="check", command=check)
|
|||||||
button.pack(ipadx=5, ipady=5)
|
button.pack(ipadx=5, ipady=5)
|
||||||
w = tk.Canvas(window, height=100, width=600)
|
w = tk.Canvas(window, height=100, width=600)
|
||||||
w.pack()
|
w.pack()
|
||||||
|
|
||||||
|
|
||||||
|
window.mainloop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user