From 8c3f4419e14955f7d9ace14e7ea65b02fa032ce6 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 2 Jan 2022 16:03:58 +0800
Subject: [PATCH] save project

---
 my_window.py |  9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/my_window.py b/my_window.py
index cbf9824..6bf4c1e 100644
--- a/my_window.py
+++ b/my_window.py
@@ -7,14 +7,17 @@ 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:
+        e1e=e1.get()
+        e2e=e2.get()
         file.write(e1e)
         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.place(x=120,y=80)
-e1e=e1.get()
+
 e2=tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18)
 e2.place(x=120,y=160)
 e2e=e2.get()
@@ -31,6 +34,6 @@ l2.place(x=50,y=160)
 l3=tkinter.Label(root,text="密码again:",font=("宋体",14),fg="black")
 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)
 root.mainloop()
--
libgit2 0.25.0