Commit 53c3d272 by BellCodeEditor

save project

parent 0440bc44
Showing with 2 additions and 1 deletions
...@@ -38,11 +38,12 @@ def register(): # 注册验证 ...@@ -38,11 +38,12 @@ def register(): # 注册验证
def login(): # 登录验证 def login(): # 登录验证
name,password=app_login.get_input() name,password=app_login.get_input()
pwd=users[name] pwd=users.get(name)
if pwd==password: if pwd==password:
messagebox.showinfo("成功","登录成功") messagebox.showinfo("成功","登录成功")
else: else:
messagebox.showwarning("失败","用户名或密码不正确") messagebox.showwarning("失败","用户名或密码不正确")
class My_login(): # 登录窗口 class My_login(): # 登录窗口
def __init__(self): def __init__(self):
self.root = tkinter.Tk() self.root = tkinter.Tk()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment