Commit 1bcd0e13 by BellCodeEditor

save project

parent 496aa6f4
Showing with 5 additions and 5 deletions
......@@ -94,8 +94,12 @@ def login(): # 登录验证
name, password = app_login.get_input()
pwd = users.get(name)
if pwd == password:
messagebox.showinfo("成功", "登录成功")
global app
app_login.root.destroy()
app = Note()
app.show()
app.root.mainloop()
else:
messagebox.showwarning("错误", "用户名或密码错误!")
......@@ -191,7 +195,3 @@ class My_register(): # 注册窗口
app_login = My_login()
app_login.show()
app = Note()
app.show()
app.root.mainloop()
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