Commit e8b15f6f by BellCodeEditor

save project

parent 1a3c98ef
Showing with 6 additions and 4 deletions
......@@ -92,7 +92,11 @@ def login(): # 登录验证
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("错误", "用户名或密码错误!")
......@@ -192,7 +196,4 @@ class My_register(): # 注册窗口
return self.name, self.password1, self.password2
app_login = My_login()
app_login.show()
app = Note()
app.show()
app.root.mainloop()
app_login.show()
\ No newline at end of file
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