Commit 8c3f4419 by BellCodeEditor

save project

parent f84200b7
Showing with 6 additions and 3 deletions
...@@ -7,14 +7,17 @@ root.resizable(width=False,height=False) ...@@ -7,14 +7,17 @@ root.resizable(width=False,height=False)
def OK(): def OK():
print("OK") print("OK")
with open(r"C:\Users\Administrator\Desktop\a.text","w",encoding="utf-8") as file: with open(r"C:\Users\Administrator\Desktop\a.text","w",encoding="utf-8") as file:
e1e=e1.get()
e2e=e2.get()
file.write(e1e) file.write(e1e)
file.write(e2e) file.write(e2e)
file.write(e3e) # file.write(e2e)
# file.write(e3e)
e1=tkinter.Entry(root,show=None,font=("宋体",14),bg="light grey",width=18) e1=tkinter.Entry(root,show=None,font=("宋体",14),bg="light grey",width=18)
e1.place(x=120,y=80) e1.place(x=120,y=80)
e1e=e1.get()
e2=tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18) e2=tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18)
e2.place(x=120,y=160) e2.place(x=120,y=160)
e2e=e2.get() e2e=e2.get()
...@@ -31,6 +34,6 @@ l2.place(x=50,y=160) ...@@ -31,6 +34,6 @@ l2.place(x=50,y=160)
l3=tkinter.Label(root,text="密码again:",font=("宋体",14),fg="black") l3=tkinter.Label(root,text="密码again:",font=("宋体",14),fg="black")
l3.place(x=10,y=240) l3.place(x=10,y=240)
button=tkinter.Button(root,text="提交",font=("宋体",14),fg="black",bg="pink",command=OK()) button=tkinter.Button(root,text="提交",font=("宋体",14),fg="black",bg="pink",command=OK)
button.place(x=160,y=280) button.place(x=160,y=280)
root.mainloop() 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