Commit 723048d1 by BellCodeEditor

save project

parent 46d5305f
Showing with 7 additions and 6 deletions
import tkinter as tk
root2 = tk.Tk2()
root.title()
root.geometry("100x100")
lab0 = tk.Label(root2,text='密码不相等,请检查,font=('宋体',15),fg="red",width=10,height=2)
root2 = tk.Tk()
root2.title()
root2.geometry("200x50")
lab0 = tk.Label(root2,text='密码不符,请检查',font=('宋体',15),fg="red",width=20,height=2)
lab0.place(x=0,y=0)
root2.mainloop()
def a():
name=get(e1)
if (get(e2)==get(e3)):
......@@ -28,5 +27,6 @@ lab2 = tk.Label(root,text='密码:',font=('宋体',15),fg="red",width=10,heigh
lab2.place(x=30,y=130)
lab3 = tk.Label(root,text='确认密码:',font=('宋体',15),fg="red",width=10,height=2)
lab3.place(x=30,y=190)
tk.Button(root)
button=tk.Button(root,text='确定',font=('宋体',15),bg="lightgreen",width=15,command=a)
button.place(x=50,y=250)
root.mainloop()
\ No newline at end of file
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