Commit fbad739b by BellCodeEditor

save project

parent c74f1efa
Showing with 8 additions and 2 deletions
import tkinter import tkinter
from tkinter import * from tkinter import *
alist = ["星期六下午打篮球", "星期天下午和小美一起看电影", alist = ["星期六下午打篮球", "星期天下午和小美一起看电影",
"12月18日给蒂法过生日","12.24送妈妈圣诞礼物","我是优菈的狗!!!"] "12月18日给蒂法过生日","12.24送妈妈圣诞礼物","我是优菈的狗!!!","只因你太美"]
class Note(): # 便签、笔记 class Note(): # 便签、笔记
def __init__(self): def __init__(self):
...@@ -33,7 +33,13 @@ class Note(): # 便签、笔记 ...@@ -33,7 +33,13 @@ class Note(): # 便签、笔记
def get_info(self): def get_info(self):
pass info=self.ent.get()
if info !="":
alist.append(info)
self.canvas.create_text(40,self.y,text=info,font=(
"宋体",11),anchor="w",fill='#FF9900')
self.y+=30
self.ent.delete("0",END)
app = Note() app = Note()
app.show() app.show()
......
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