Commit 1f4e26dd by BellCodeEditor

save project

parent d342feb7
Showing with 12 additions and 0 deletions
...@@ -27,11 +27,23 @@ class Note(): # 便签、笔记 ...@@ -27,11 +27,23 @@ class Note(): # 便签、笔记
self.but.place(x=240, y=305) self.but.place(x=240, y=305)
# 展示所有的文字 # 展示所有的文字
self.y = 20 self.y = 20
self.val = 0
self.v = IntVar()
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.canvas = tkinter.Rediobutton(self.canvas,image=self.box,
value=self.val,variable=sel.v,width=25,height=15
borderwidth=0,)
self.select.place()
self.y += 30 self.y += 30
def remove(self):
num = self.v.get()
alist.pop(num)
self.ent.delete("0",END)
if info !="":
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)
......
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