Commit a06a1693 by BellCodeEditor

save project

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