Commit eaf84600 by BellCodeEditor

save project

parent 102b3239
Showing with 13 additions and 7 deletions
...@@ -30,9 +30,12 @@ class Note(): # 便签、笔记 ...@@ -30,9 +30,12 @@ class Note(): # 便签、笔记
self.val = 0 self.val = 0
self.v = IntVar() self.v = IntVar()
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,
self.select = tkinter.Radiobutton(self.canvas,image = self.box,value = self.val,variable = self.v) font=("宋体", 11), anchor=W, fill='#FF9900')
self.select.place(x=0,y=self.v) self.select = tkinter.Radiobutton(self.canvas,image = self.box,
value = self.val,variable = self.v,width = 25,height = 15,
borderwidth = 0)
self.select.place(x=-20,y=self.y-15)
self.val += 1 self.val += 1
self.y += 30 self.y += 30
...@@ -41,12 +44,14 @@ class Note(): # 便签、笔记 ...@@ -41,12 +44,14 @@ 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),
self.select = tkinter.Radiobutton(self.canvas,image = self.box,value = self.val,variable = self.v) anchor=W, fill='#FF9900')
self.select.place(x=0,y=self.v) self.select = tkinter.Radiobutton(self.canvas,image = self.box,
value = self.val,variable = self.v)
self.select.place(x=-20,y=self.y-15)
self.val += 1 self.val += 1
self.y += 30 self.y += 30
app = Note() app = Note()
app.show() app.show()
app.root.mainloop() app.root.mainloop()
\ No newline at end of file
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