Commit f71bcc17 by BellCodeEditor

save project

parent 3567c049
Showing with 12 additions and 1 deletions
......@@ -2,7 +2,14 @@ import tkinter
root=tkinter.Tk()
root.title("注册")
root.geometry("400x320+500+300")
root.resizable(width=False,height=False)
def register():
name = e1.get()
passward=e2.get()
passward1=e3.get()
print("提交的用户名为:",name)
print("提交的密码为:",passward)
print("提交的确认密码为:",passward1)
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)
......@@ -19,4 +26,7 @@ lab.place(x=60,y=140)
lab=tkinter.Label(root,text="确认密码",font=("宋体",14),fg="black")
lab.place(x=40,y=200)
button=tkinter.Button(root,text="提交",font=("宋体",14),fg="black",bg="light green",width=10,height=1,command=register)
button.place(x=150,y=250)
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