Commit 69598b17 by BellCodeEditor

save project

parent d122dacf
Showing with 8 additions and 5 deletions
......@@ -34,14 +34,16 @@ class Note(): # 便签、笔记
self.canvas.create_text(40, self.y, text=info,
font=("宋体", 11), anchor=W, fill='#FF9900')
self.r_1 = tkinter.Radiobutton(self.root,image =self.bg_img1 ,width = 25,
height =15,value=self.a,variable=self.v,)
height =15,value=self.a,variable=self.v,command=self.remod)
self.a = self.a+1
self.r_1.place(x = -6,y=self.y-13)
self.y += 30
def remod(self):
num = self.v.get()
alist.pop(num)
self.canvas.destroy()
app.show()
def get_info(self):
info = self.ent.get()
......@@ -51,10 +53,11 @@ class Note(): # 便签、笔记
self.canvas.create_text(40,self.y,text=info,font=("宋体",11),
anchor=W, fill='#FF9900')
self.r_1 = tkinter.Radiobutton(self.root,image =self.bg_img1 ,width = 25,
height =15,value=self.a,variable=self.v,)
height =15,value=self.a,variable=self.v,command=self.remod)
self.a = self.a+1
self.r_1.place(x = -6,y=self.y-13)
self.y += 30
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