Commit 3797c0ae by BellCodeEditor

save project

parent 16bc10bf
Showing with 6 additions and 5 deletions
......@@ -42,9 +42,10 @@ def register(): # 注册验证
def login(): # 登录验证
name, password = app_login.get_input()
user= users.get(name)
if pwd == password:
messagebox.showinfo("成功", "登录成功")
user_name= users.get(name)
if user_name!=None and user_name["password"]==password:
alist=users[name]["event"]
app_login.root.destroy()
app = Note()
app.show()
app.root.mainloop()
......@@ -157,8 +158,8 @@ class Note(): # 便签、笔记
def remove():
num = self.val.get
alist.pop(num)
self.canvas.destroy()
app.show()
content = jiso.dumps(users)
def show(self): # 布置窗口界面
# 画布
self.canvas = tkinter.Canvas(self.root, width=300, height=340)
......
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