Commit 948a8f17 by BellCodeEditor

save project

parent 032dc1b4
Showing with 11 additions and 2 deletions
import tkinter import tkinter
def register():
name =e1.get()
password1 =e2.get()
password1 =e2.get()
root =tkinter.tk() root =tkinter.tk()
root.title("注册") root.title("注册")
root.geometry("400x320+500+300") root.geometry("400x320+500+300")
print("用户输入的信息为:"name,password2)
e1 =tkinter.entry(root,show=none,font=('宋体'14ligh))bg="t grey",width=18) e1 =tkinter.entry(root,show=none,font=('宋体'14ligh))bg="t grey",width=18)
e1.place(x=140,y=140) e1.place(x=140,y=140)
...@@ -13,3 +17,7 @@ e2=tkintr.entry(root,show='*',font=('宋体',14),width=18) ...@@ -13,3 +17,7 @@ e2=tkintr.entry(root,show='*',font=('宋体',14),width=18)
e2.place(x=140,y200) e2.place(x=140,y200)
button =tkinter.button(root,text='提交'bg="lightgreen",width=15,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