Commit 383f7ede by BellCodeEditor

auto save

parent 1f9923e5
Showing with 16 additions and 5 deletions
for i in range(101):
if i%3==0:
print(i,end=' ')
if i%5==0:
print(i,end=' ')
if i%15==0:
print(i,end=' ')
# for i in range(15,101):
# if i%3==0:
# print(i,end=' ')
......@@ -11,7 +11,7 @@ class Note(): # 便签、笔记
self.root.title("我的便签-待办事项")
self.root.resizable(width=False, height=False)
self.bg_img = tkinter.PhotoImage(file="bg.png")
self.box = tkinter.PhotoImage(file='box.png')
self.box = tkinter.PhotoImage(file='box.png')#载入背景资源
def show(self): # 布置窗口界面
# 画布
......@@ -38,9 +38,9 @@ class Note(): # 便签、笔记
borderwidth=0,command=self.remove)
self.select.place(x=-20,y=self.y-10)
self.val += 1
self.y += 30
self.y += 30#创建文字框
def remove(self):
def remove(self):#点击方框后删除那一行
num = self.v.get()
alist.pop(num)
self.canvas.destroy()
......@@ -55,7 +55,6 @@ class Note(): # 便签、笔记
anchor=W, fill='#FF9900')
self.y += 30
app = Note()
app.show()
app.root.mainloop()
......
......@@ -4,7 +4,7 @@ root = tkinter.Tk()
root.geometry('300x340+500+200')
canvas = tkinter.Canvas(root, width=300, height=340, bg="lightblue")
canvas.place(x=0, y=0)
# ++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++
def func():
num = v.get()
print("你选择了:",num)
......
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