Commit d38fa686 by BellCodeEditor

save project

parent 307ac72d
Showing with 28 additions and 0 deletions
import tkinter
root=tkinter.Tk()
root.title("创建")
root.geometry("400x300+500+300")
root.resizable(width=False,height=False)
el=tkinter.Entry(root,show=None,font=("宋体",14),width=18)
e2=tkinter.Entry(root,show='*',font=("宋体",14),width=18)
e3=tkinter.Entry(root,show='*',font=("宋体",14),width=18)
el.place(x=140,y=80)
e2.place(x=140,y=140)
e3.place(x=140,y=200)
a=tkinter.Label(root,text="请填写用户名",font=("宋体",15),fg="black",width=40,height=2,bg="green")
a.place(x=0,y=0)
b=tkinter.Label(root,text="用户名:",font=("宋体",14),fg="black")
b.place(x=65,y=80)
c=tkinter.Label(root,text="密码:",font=("宋体",14),fg="black")
c.place(x=85,y=140)
d=tkinter.Label(root,text="确认密码:",font=("宋体",14),fg="black")
d.place(x=45,y=200)
def register():
name=el.get()
cc=e2.get()
vv=e3.get()
print("用户输入的信息为:",name,cc,vv)
cl=tkinter.Button(root,text='提交',bg="blue",width=15,command=register)
cl.place(x=150,y=250)
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