Commit ce5fe6bf by BellCodeEditor

save project

parent 27559996
Showing with 26 additions and 0 deletions
import tkinter
root=tkinter.Tk()
root.title("注册")
root.geometry("300x400+500+300")
root.resizable(width=False,height=False)
e1=tkinter.Entry(root,show=None,font=('宋体',15),bg='light grey',width=18)
e1.place(x=80,y=100)
e2=tkinter.Label(root,text='账号',font=('宋体',15),width=5)
e2.place(x=0,y=100)
e5=tkinter.Entry(root,show="*",font=('宋体',15),bg='light grey',width=18)
e5.place(x=80,y=150)
e3=tkinter.Label(root,text='密码',font=('宋体',15),width=5)
e3.place(x=0,y=150)
e6=tkinter.Entry(root,show="*",font=('宋体',15),bg='light grey',width=18)
e6.place(x=110,y=200)
e3=tkinter.Label(root,text='确认密码',font=('宋体',15),width=10)
e3.place(x=0,y=200)
e4=tkinter.Label(root,text='请输入你的注册信息',font=('宋体',15),fg='black',bg='green',width=30,height=2)
e4.place(x=0,y=0)
def fun():
name=e1.get()
print(name,'的账号提交成功')
b1=tkinter.Button(root,text='提交',fg='blue',bg='pink',width=10,command=fun)
b1.place(x=100,y=300)
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