Commit 72e3883b by BellCodeEditor

save project

parent 881a7b65
Showing with 4 additions and 0 deletions
......@@ -39,6 +39,8 @@ class Note(): # 便签、笔记
def remove(self):
num=self.v.get()
alist.pop(num)
with open("user.txt", "w", encoding="utf-8") as file: # "w"每次写入都覆盖原来的内容
file.write(content)
self.canvas.destroy()
app.show()
def get_info(self):
......@@ -46,6 +48,8 @@ class Note(): # 便签、笔记
if info != "":
alist.append(info)
with open("user.txt", "w", encoding="utf-8") as file: # "w"每次写入都覆盖原来的内容
file.write(content)
self.canvas.create_text(40,self.y,text=info,font=("宋体",11),
anchor=W, fill='#FF9900')
self.select=tkinter.Radiobutton(self.canvas,image=self.box,value=self.val,
......
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