Commit 29a7707b by BellCodeEditor

save project

parent 9794b546
Showing with 6 additions and 7 deletions
......@@ -19,14 +19,13 @@ def register(): # 注册验证
messagebox.showwarning("错误","不一样")
else:
users[name] = password1
content = json.dumps(usersb)
with open("user.txt","w",encoding="utf-8") as file
file.write(content)
messagebox.showinfo("成功","ok")
reg_to_login()
def login(): # 登录验证
name,password = app_login.get_input()
pwd = users.get(name)
if pwd == password:
messagebox.showwarning("okok","成了")
else:
messagebox.showwarning("no","用户不对")
class My_login(): # 登录窗口
def __init__(self):
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