Commit 44cdb15a by BellCodeEditor

save project

parent 204adc36
Showing with 9 additions and 0 deletions
def register():
name=e1.get()
passsword1 =e2.get()
passsword2 =e3.get()
print("用户输入的信息为:",name,passsword1,passsword2)
import tkinter import tkinter
root = tkinter.Tk() root = tkinter.Tk()
root.title("注册") # 设置窗口标题 root.title("注册") # 设置窗口标题
...@@ -20,4 +25,7 @@ e3 = tkinter.Entry(root,show="*",font=('宋体',14),bg="light grey",width=18) # ...@@ -20,4 +25,7 @@ e3 = tkinter.Entry(root,show="*",font=('宋体',14),bg="light grey",width=18) #
e3.place(x=140, y=200) e3.place(x=140, y=200)
l3=tkinter.Label(root,text="确认密码:",font=("宋体",12),fg="black") l3=tkinter.Label(root,text="确认密码:",font=("宋体",12),fg="black")
l3.place(x=50,y=200) l3.place(x=50,y=200)
B=tkinter.Button(root,text="提交",bg="lightgreen",width=15,command=register)
B.place(x=150,y=250)
root.resizable()
root.mainloop() 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