Commit b9292894 by BellCodeEditor

save project

parent 307ac72d
Showing with 38 additions and 0 deletions
import tkinter
def register():
name=e1.get()
password1=e2.get()
password2=e3.get()
print("用户输入的信息是:",name,password1,password2)
root=tkinter.Tk()
root.title("注册")
root.geometry("400x300+500+300")
root.resizable(width=False,height=False)
e1=tkinter.Entry(root,show=None,font=("宋体",14),bg="light grey",width=8)
e1.place(x=140,y=80)
e1=tkinter.Label(root,text="用户名:",font=("宋体",14),width=8)
e1.place(x=0,y=80)
e2=tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=8)
e2.place(x=140,y=120)
e2=tkinter.Label(root,text="密码:",font=("宋体",14),width=8)
e2.place(x=0,y=120)
e3=tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=8)
e3.place(x=140,y=160)
e3=tkinter.Label(root,text="再输入密码:",font=("宋体",14),width=8)
e3.place(x=0,y=160)
e4=tkinter.Label(root,text="你好!请填写注册信息",font=("宋体",14),fg="black",width=18,height=2,bg="green")
e4.place(x=100,y=10)
button1=tkinter.Button(root,text="提交",fg="blue",width=10,command=register)
button1.place(x=140,y=200)
root.mainloop()
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