Commit b7509310 by BellCodeEditor

auto save

parent d342feb7
Showing with 9 additions and 3 deletions
......@@ -27,21 +27,27 @@ class Note(): # 便签、笔记
self.but.place(x=240, y=305)
# 展示所有的文字
self.y = 20
self.vv=0
self.v=IntVar()
for info in alist:
self.select=tkinter.Radiobutton(self.root,text="box.png",value=self.vv,variable=self.v)
self.select.place(x=5,y=5)
self.vv+=1
self.canvas.create_text(40, self.y, text=info,
font=("宋体", 11), anchor=W, fill='#FF9900')
self.y += 30
def get_info(self):
info = self.ent.get()
self.ent.delete("0", END)
if info != "":
alist.append(info)
self.select=tkinter.Radiobutton(self.root,text="box.png",value=self.vv,variable=self.v)
self.vv+=1
self.select.place(x=10,y=10)
self.canvas.create_text(40,self.y,text=info,font=("宋体",11),
anchor=W, fill='#FF9900')
self.y += 30
app = Note()
app.show()
app.root.mainloop()
......
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