Commit 102b3239 by BellCodeEditor

save project

parent cb8a043a
Showing with 6 additions and 1 deletions
...@@ -32,6 +32,8 @@ class Note(): # 便签、笔记 ...@@ -32,6 +32,8 @@ class Note(): # 便签、笔记
for info in alist: for info in alist:
self.canvas.create_text(40, self.y, text=info,font=("宋体", 11), anchor=W, fill='#FF9900') 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,variable = self.v) self.select = tkinter.Radiobutton(self.canvas,image = self.box,value = self.val,variable = self.v)
self.select.place(x=0,y=self.v)
self.val += 1
self.y += 30 self.y += 30
def get_info(self): def get_info(self):
...@@ -39,7 +41,10 @@ class Note(): # 便签、笔记 ...@@ -39,7 +41,10 @@ class Note(): # 便签、笔记
self.ent.delete("0", END) self.ent.delete("0", END)
if info != "": if info != "":
alist.append(info) alist.append(info)
self.canvas.create_text(40,self.y,text=info,font=("宋体",11),anchor=W, fill='#FF9900') 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,variable = self.v)
self.select.place(x=0,y=self.v)
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