Commit 458ad906 by BellCodeEditor

save project

parent 44f49ff5
Showing with 6 additions and 2 deletions
import tkinter import tkinter
alist = ["星期六下午打篮球", "13.1日午夜和小美一起看鬼片", alist = ["星期六下午给三个人绝育", "13.1日午夜和小美一起看鬼片",
"13月18日蒂法过孟婆桥","13.24送妈妈圣诞礼物"] "13月18日蒂法过孟婆桥","13.24给杰哥肾虚大礼包"]
class Note(): # 便签、笔记 class Note(): # 便签、笔记
def __init__(self): def __init__(self):
...@@ -22,6 +22,10 @@ class Note(): # 便签、笔记 ...@@ -22,6 +22,10 @@ class Note(): # 便签、笔记
self.but = tkinter.Button(self.root,text='添加',font=('宋体',12), self.but = tkinter.Button(self.root,text='添加',font=('宋体',12),
bg="lightblue", width=5, command=self.get_info) bg="lightblue", width=5, command=self.get_info)
self.but.place(x=240, y=305) self.but.place(x=240, y=305)
self.y=20
for info in alist:
self.canvas.create_text(40,self.y,text=info,font=('宋体',11),anchor=W,fill='WFF9900')
self.y+=30
def get_info(self): def get_info(self):
......
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