Commit e89ee73b by BellCodeEditor

save project

parent ba2578d2
Showing with 11 additions and 0 deletions
...@@ -3,6 +3,14 @@ root=tkinter.Tk() ...@@ -3,6 +3,14 @@ root=tkinter.Tk()
root.title("注册") root.title("注册")
root.geometry("400x300+800+400") root.geometry("400x300+800+400")
root.resizable(width=False,height=False)
def regisrer():
name=e1.get()
mima1=e2.get()
mima2=e3.get()
print('用户输入的信息为'+name+' '+mima1+' '+mima2)
lab=tkinter.Label(root,text='你好,请填写注册信息',font=('楷体',14),fg="black",width=40,height=2,bg='light green') lab=tkinter.Label(root,text='你好,请填写注册信息',font=('楷体',14),fg="black",width=40,height=2,bg='light green')
lab.place(x=0,y=0) lab.place(x=0,y=0)
...@@ -24,4 +32,7 @@ e3.place(x=180,y=160) ...@@ -24,4 +32,7 @@ e3.place(x=180,y=160)
l3=tkinter.Label(root,text='确认:',font=('楷体',14),fg="black",width=5) l3=tkinter.Label(root,text='确认:',font=('楷体',14),fg="black",width=5)
l3.place(x=115,y=160) l3.place(x=115,y=160)
button=tkinter.Button(root,text='提交:',font=('楷体',14),fg="blue",width=15,bg='yellow',command=regisrer)
button.place(x=150,y=200)
root.mainloop() 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