Commit afe8c99f by BellCodeEditor

save project

parent a1a19557
Showing with 23 additions and 0 deletions
import tkinter
def register():
name1=e1.get()
name2=e2.get()
name3=e3.get()
print("点击了提交按钮")
print(name1)
print(name2)
print(name3)
rood = tkinter.Tk()
rood.resizable(width=False,height=False)
rood.title("登入")
rood.geometry("400x300+500+300")
e1=tkinter.Entry(rood,show=None,font=("宋体",14),bg="red",width=18)
......@@ -8,4 +18,16 @@ e2=tkinter.Entry(rood,show="*",font=("宋体",14),bg="red",width=18)
e2.place(x=120,y=120)
e3=tkinter.Entry(rood,show="*",font=("宋体",14),bg="red",width=18)
e3.place(x=120,y=160)
l1=tkinter.Label(rood,text='请输入信息',font=("宋体",14),fg="blue",bg="red",width=40,
height=2)
l1.place(x=0,y=0)
l2=tkinter.Label(rood,text='用户名',font=("宋体",14),fg="blue")
l2.place(x=30,y=80)
l3=tkinter.Label(rood,text='密码',font=("宋体",14),fg="blue")
l3.place(x=30,y=120)
l4=tkinter.Label(rood,text='确认密码',font=("宋体",13),fg="blue")
l4.place(x=30,y=160)
button1=tkinter.Button(rood,text='提交',bg='lightgreen',width=15,command=register)
button1.place(x=150,y=250)
rood.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