Commit 5648ef0c by BellCodeEditor

save project

parent d342feb7
Showing with 11 additions and 0 deletions
...@@ -39,6 +39,7 @@ def login(): # 登录验证 ...@@ -39,6 +39,7 @@ def login(): # 登录验证
name, password = app_login.get_input() name, password = app_login.get_input()
pwd = users.get(name) pwd = users.get(name)
if pwd == password: if pwd == password:
messagebox.showinfo("成功", "登录成功") messagebox.showinfo("成功", "登录成功")
else: else:
messagebox.showwarning("错误", "用户名或密码错误!") messagebox.showwarning("错误", "用户名或密码错误!")
......
def get_info(self):
info = self.ent.get()
self.ent.delete("0", END)
if info != "":
alist.append(info)
self.canvas.create_text(40,self.y,text=info,font=("宋体",11),
anchor=W, fill='#FF9900')
self.select = tkinter.Radiobutton(self.canves,image=self.box,
value=self.val,valiable=self.box)
self.select.place(x=0,y=self.y)
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