Commit 4a97e550 by BellCodeEditor

auto save

parent d342feb7
Showing with 10 additions and 2 deletions
import tkinter import tkinter
from tkinter import * from tkinter import *
alist = ["星期六下午打篮球", "星期天下午和小美一起看电影", alist = ["星期六下午打篮球", "星期天下午和女朋友一起看电影",
"12月18日给蒂法过生日", "12.24送妈妈圣诞礼物"] "12月18日给女朋友过生日", "12.24送女朋友圣诞礼物","学习科目3"]
class Note(): # 便签、笔记 class Note(): # 便签、笔记
def __init__(self): def __init__(self):
...@@ -30,6 +30,10 @@ class Note(): # 便签、笔记 ...@@ -30,6 +30,10 @@ class Note(): # 便签、笔记
for info in alist: for info in alist:
self.canvas.create_text(40, self.y, text=info, self.canvas.create_text(40, self.y, text=info,
font=("宋体", 11), anchor=W, fill='#FF9900') font=("宋体", 11), anchor=W, fill='#FF9900')
self.select = tkinter.Radiobutton(self.canvas,image=self.box,
value=self.val,variable=self.v,)
self.select.place(x=-20,y=self.y-10)
self.val += 1
self.y += 30 self.y += 30
def get_info(self): def get_info(self):
...@@ -39,6 +43,10 @@ class Note(): # 便签、笔记 ...@@ -39,6 +43,10 @@ class Note(): # 便签、笔记
alist.append(info) alist.append(info)
self.canvas.create_text(40,self.y,text=info,font=("宋体",11), self.canvas.create_text(40,self.y,text=info,font=("宋体",11),
anchor=W, fill='#FF9900') anchor=W, fill='#FF9900')
self.select = tkinter.Radiobutton(self.canvas,image=self.box,
value=self.val,variable=self.v,)
self.select.place(x=-20,y=self.y-10)
self.val += 1
self.y += 30 self.y += 30
......
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