Commit 565ce0eb by BellCodeEditor

save project

parent b01989a0
Showing with 18 additions and 4 deletions
...@@ -45,6 +45,20 @@ class Note(): # 便签、笔记 ...@@ -45,6 +45,20 @@ class Note(): # 便签、笔记
def remove(self) def remove(self)
num = self.v.get() num = self.v.get()
alist.pop(num) alist.pop(num)
content=json.dumps(users)
with open("user.txt","r",encoding="utf-8") as f:
info = f.read()
users = json.loads(info)
self.canvas.destroy()
app.show
def remove(self)
num = self.v.get()
alist.pop(num)
self.canvas.destroy() self.canvas.destroy()
app.show() app.show()
...@@ -67,10 +81,6 @@ with open("user.txt","r",encoding="utf-8") as f: ...@@ -67,10 +81,6 @@ with open("user.txt","r",encoding="utf-8") as f:
users = json.loads(info) users = json.loads(info)
app = Note()
app.show()
app.root.mainloop()
def login_to_reg(): # 登录界面转注册界面 def login_to_reg(): # 登录界面转注册界面
app_login.root.destroy() app_login.root.destroy()
global app_reg global app_reg
...@@ -82,6 +92,10 @@ def reg_to_login(): # 注册界面转登录界面 ...@@ -82,6 +92,10 @@ def reg_to_login(): # 注册界面转登录界面
global app_login global app_login
app_login = My_login() app_login = My_login()
app_login.show() app_login.show()
app = Note()
app.show()
app.root.mainloop()
def register(): # 注册验证 def register(): # 注册验证
name,password1,password2 = app_reg.get_input() name,password1,password2 = app_reg.get_input()
......
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