Commit 55f103a0 by BellCodeEditor

auto save

parent 18a50b26
Showing with 4 additions and 7 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):
self.root = tkinter.Tk() self.root = tkinter.Tk()
...@@ -36,7 +34,8 @@ class Note(): # 便签、笔记 ...@@ -36,7 +34,8 @@ class Note(): # 便签、笔记
self.select.place(x=-20,y=self.y-10) self.select.place(x=-20,y=self.y-10)
self.val+=1 self.val+=1
self.y += 30 self.y += 30
def remove(self):
def get_info(self): def get_info(self):
info = self.ent.get() info = self.ent.get()
self.ent.delete("0", END) self.ent.delete("0", END)
...@@ -48,9 +47,6 @@ class Note(): # 便签、笔记 ...@@ -48,9 +47,6 @@ class Note(): # 便签、笔记
self.select.place(x=-20,y=self.y-10) self.select.place(x=-20,y=self.y-10)
self.val+=1 self.val+=1
self.y += 30 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