Commit 374bb05d by BellCodeEditor

save project

parent 8456b77f
Showing with 12 additions and 2 deletions
......@@ -26,10 +26,20 @@ def register(): # 注册验证
messagebox.showwarning("cuowu,","------")
else:
users[name]=password1
content=json.dumps(users)
with open("user.txt","w",encoding="utf-8") as file:
file.write(content)
messagebox.showinfo("chengg","--")
reg_to_login()
def login(): # 登录验证
pass
def login(): # 登录验证
name,password=app_login.get_input()
pwd=users.get(name)
if pwd==passeord:
messagebox.showinfo("chenggong","------")
else:
messagebox.showwarning("cuowu","-----")
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