📅  最后修改于: 2022-03-11 14:59:44.310000             🧑  作者: Mango
import time
import tkinter as tk
from tkinter import messagebox as msg
def logged_in():
while(1):
pass_1=input("Enter the password:")
log_in=pass_1=="JP"
if(log_in==True):
msg.showinfo('Yes', 'Password is accessed')
break;
else:
i=1
for i in range(1,i+1):
msg.showinfo('countdown','TRY AGAIN ', i ,' SEC.....')
time.sleep(0.7)
logged_in()