Commit 7f9a0f02 by BellCodeEditor

save project

parent be8f5a18
Showing with 8 additions and 3 deletions
...@@ -29,8 +29,14 @@ m=tkinter.Label(s,text="确认密码:",font=("宋体",15), ...@@ -29,8 +29,14 @@ m=tkinter.Label(s,text="确认密码:",font=("宋体",15),
width=0) width=0)
m.place(x=34,y=200) m.place(x=34,y=200)
button1=tkinter.Button(s,text="提交",bg="green",fg="blue",width=15) def q():
name=e1.get()
password=e2.get()
with open("user.txt","w",encoding="utf-8")as file:
file.write(name)
file.write(password)
button1=tkinter.Button(s,text="提交",bg="green",fg="blue",width=15,command=q)
button1.place(x=150,y=250) button1.place(x=150,y=250)
e1=thinter.Entry()
s.mainloop() s.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