Commit 644ab0e1 by BellCodeEditor

save project

parent 1fe5647e
Showing with 10 additions and 2 deletions
...@@ -31,8 +31,15 @@ class Note(): # 便签、笔记 ...@@ -31,8 +31,15 @@ class Note(): # 便签、笔记
if info !=' ': if info !=' ':
self.ent.delete('0',END) self.ent.delete('0',END)
alist.append(info) alist.append(info)
self.canvas.create_text(40,self.y,text=info,font=('宋体',12),anchor=W,fill='orange')
self.y+=30 if len(info) < 15:
self.canvas.create_text(40,self.y,text=info,font=('宋体',12),anchor=W,fill='orange')
self.y+=30
else:
self.canvas.create_text(40,self.y,text=info[0:14],font=('宋体',12),anchor=W,fill='orange')
self.y+=30
self.canvas.create_text(40,self.y,text=info[15:-1],font=('宋体',12),anchor=W,fill='orange')
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