Commit db7813de by BellCodeEditor

save project

parent 7f06b29d
Showing with 9 additions and 1 deletions
import tkinter
def register():
name=e1.get()
want=e2.get()
enyt=e3.get()
print("点击了提交按钮")
root=tkinter.Tk()
root.title("注册")
root.geometry("400x600+700+300")
root.resizable(width=False,height=False)
e1=tkinter.Entry(root,show=None,font=('宋体',14),bg="light grey",width=18)
e1.place(x=140,y=80)
e2=tkinter.Entry(root,show=None,font=('宋体',14),bg="light grey",width=18)
......@@ -17,4 +22,7 @@ lab3=tkinter.Label(root,text='密码',font=('宋体',15))
lab3.place(x=50,y=140)
lab4=tkinter.Label(root,text='确认密码',font=('宋体',15))
lab4.place(x=50,y=200)
button1=tkinter.Button(root,rext='提交',bg="lightgreen",width=15,command=register)
button1.piace(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