Commit 459ef705 by BellCodeEditor

save project

parent 80d6eb5b
Showing with 8 additions and 3 deletions
......@@ -33,11 +33,15 @@ class Note():
# 使用create_text()方法参数为x,y坐标为(40,y) 文字text 字体font=("宋体",11) 对其方式anchor为W 字体颜色fill为红色
self.cenvas.create_text(40,self.y,texr=i,fort=("宋体",11),anchor=W,fill='#FF9900')
# 循环一次y坐标自增20
SELF.Y+=20
self.y+=20
def get_info(self):
pass
info=self.ent.get()
if info !="":
self.ent.delete('0',END)
alist.append(info)
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()
\ 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