Commit 1f0ccbe7 by BellCodeEditor

save project

parent 12e3a91a
Showing with 9 additions and 19 deletions
import tkinter
from tkinter import messagebox
with open("SB") as f:
info=f.read()
uses=json.l
import json
with open("wser.tst","r",encoding="utf-8") as f:
info = f.read()
uses = json(info)
def login_to_reg(): # 登录界面转注册界面
app_login.root.destroy()
......@@ -13,23 +15,11 @@ def login_to_reg(): # 登录界面转注册界面
def reg_to_login(): # 注册界面转登录界面
app_login.root.destroy()
global app_login
app_login=My_login
app_login.show()
global app_reg
app_reg = My_register
app_login =
def register(): # 注册验证
name,password1,password2=app_reg.get_input()
if name=='' or password1=='' or password2=='':
messagebox.showwarning('SB')
elif name in uses:
messagebox.showwarning('SB')
elif password2!=password1:
messagebox.showwarning('SB')
else:
uses[name]=password1
con=json.dumps(uses)
with open('user.txt','w',encoding)
pass
def login(): # 登录验证
pass
......
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