Commit 23cb04b1 by BellCodeEditor

auto save

parent 0651e310
Showing with 37 additions and 0 deletions
import tkinter
def regi():
print(e1.get())
print(e2.get())
print(e3.get())
root = tkinter.Tk()
root.title("注册")
root.geometry("400x300+500+200")
e1 = tkinter.Entry(root,show=None,font=('宋体',14),bg='light grey',width=18)#输入组件
e1.place(x=140,y=80)#放一个位置
e2 = tkinter.Entry(root,show='%',font=('宋体',14),bg='light grey',width=18)
e2.place(x=140,y=120)
e3 = tkinter.Entry(root,show='%',font=('宋体',14),bg='light grey',width=18)
e3.place(x=140,y=160)
lab = tkinter.Label(root,text='您好!请输入注册信息',font=('楷体',18,'bold'),fg='white',bg='black',
width=30,height=2)#标签组件
lab.place(x=0,y=0)
lab1 = tkinter.Label(root,text='账号:',font=('宋体',14),fg='black',width=5)
lab1.place(x=80,y=80)
lab2 = tkinter.Label(root,text='密码:',font=('宋体',14),fg='black',width=5)
lab2.place(x=80,y=120)
lab3 = tkinter.Label(root,text='确认密码:',font=('宋体',14),fg='black',width=8)
lab3.place(x=50,y=160)
btn = tkinter.Button(root,text='提交',font=('宋体',14),fg='white',bg='black',command=regi)#按钮组件
btn.place(x=180,y=220)
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