Commit 0b12daeb by BellCodeEditor

save project

parent cadf8107
Showing with 10 additions and 5 deletions
...@@ -29,14 +29,19 @@ class Note(): # 便签、笔记 ...@@ -29,14 +29,19 @@ class Note(): # 便签、笔记
self.y = 20 self.y = 20
self.val=0 self.val=0
self.v=IntVar() self.v=IntVar()
def gg(self):
ggo=self.v.get()
alist.pop()
self.canvas.destroy()
for info in alist: for info in alist:
self.canvas.create_text(40, self.y, text=info, self.canvas.create_text(40, self.y, text=info,
font=("宋体", 11), anchor=W, fill='#FF9900') font=("宋体", 11), anchor=W, fill='#FF9900')
self.select=tkinter.Radiobutton(self.canvas,image=self.box,width=20,height=3,value=self.val,variable=self.v) self.select=tkinter.Radiobutton(self.canvas,image=self.box,width=20,height=3,value=self.val,variable=self.v,borderwidth=0,command=remove)
self.select.place(x=0,y=self.y-10) self.select.place(x=-20,y=self.y-10)
self.val+=1 self.val+=1
self.y += 30 self.y += 30
self.canvas.destroy()
def get_info(self): def get_info(self):
info = self.ent.get() info = self.ent.get()
self.ent.delete("0", END) self.ent.delete("0", END)
...@@ -44,8 +49,8 @@ class Note(): # 便签、笔记 ...@@ -44,8 +49,8 @@ class Note(): # 便签、笔记
alist.append(info) alist.append(info)
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.select=tkinter.Radiobutton(self.canvas,image=self.box,width=20,height=3,value=self.val,variable=self.v) self.select=tkinter.Radiobutton(self.canvas,image=self.box,width=20,height=3,value=self.val,variable=self.v,borderwidth=0,command=remove)
self.select.place(x=0,y=self.y-10) self.select.place(x=-20,y=self.y-10)
self.val+=1 self.val+=1
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