Commit f84200b7 by BellCodeEditor

save project

parent 2a5ead56
Showing with 14 additions and 0 deletions
...@@ -2,13 +2,25 @@ import tkinter ...@@ -2,13 +2,25 @@ import tkinter
root=tkinter.Tk() root=tkinter.Tk()
root.geometry("400x320+700+300") root.geometry("400x320+700+300")
root.title("注册") root.title("注册")
root.resizable(width=False,height=False)
def OK():
print("OK")
with open(r"C:\Users\Administrator\Desktop\a.text","w",encoding="utf-8") as file:
file.write(e1e)
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()
e3=tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18) e3=tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18)
e3.place(x=120,y=240) e3.place(x=120,y=240)
e3e=e3.get()
l=tkinter.Label(root,text="你马好!请填写注册信息",font=("宋体",14),fg="black",bg="green",width=40,height=2) l=tkinter.Label(root,text="你马好!请填写注册信息",font=("宋体",14),fg="black",bg="green",width=40,height=2)
l.place(x=0,y=0) l.place(x=0,y=0)
...@@ -19,4 +31,6 @@ l2.place(x=50,y=160) ...@@ -19,4 +31,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.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