Commit 264d6781 by BellCodeEditor

save project

parent d342feb7
Showing with 8 additions and 1 deletions
......@@ -7,7 +7,7 @@ alist = ["星期六下午打篮球", "星期天下午和小美一起看电影",
class Note(): # 便签、笔记
def __init__(self):
self.root = tkinter.Tk()
self.root.geometry('300x340+1000+200')
self.root.geometry('300x340+50+50')
self.root.title("我的便签-待办事项")
self.root.resizable(width=False, height=False)
self.bg_img = tkinter.PhotoImage(file="bg.png")
......@@ -26,10 +26,17 @@ class Note(): # 便签、笔记
bg="lightblue", width=5, command=self.get_info)
self.but.place(x=240, y=305)
# 展示所有的文字
self.box = tkinter.PhotoImage(file='box.png')
self.y = 20
self.num = 0
self.v = tkinter.IntVar()
for info in alist:
self.canvas.create_text(40, self.y, text=info,
font=("宋体", 11), anchor=W, fill='#FF9900')
self.a = tkinter.Radiobutton(self.canvas,image=self.box,height=13,
width=30,value=self.num,variable=self.v)
self.a.place(x=-27,y=self.y-15)
self.num += 1
self.y += 30
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