Commit e5dbaf93 by BellCodeEditor

save project

parent a786a4be
Showing with 7 additions and 0 deletions
...@@ -35,6 +35,11 @@ class Note(): # 便签、笔记 ...@@ -35,6 +35,11 @@ class Note(): # 便签、笔记
self.select.place(x=0,y=self.y) self.select.place(x=0,y=self.y)
self.val +=1 self.val +=1
self.y += 30 self.y += 30
def remove(self):
num = self.v.get()
alist.pop(num)
self.canvas.destroy()
app.show()
def get_info(self): def get_info(self):
info = self.ent.get() info = self.ent.get()
...@@ -44,6 +49,8 @@ class Note(): # 便签、笔记 ...@@ -44,6 +49,8 @@ class Note(): # 便签、笔记
self.canvas.create_text(40,self.y,text=info,font=("宋体",11), self.canvas.create_text(40,self.y,text=info,font=("宋体",11),
anchor=W, fill='#FF9900') anchor=W, fill='#FF9900')
self.y += 30 self.y += 30
app = Note() app = Note()
......
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