Commit ab40a40c by BellCodeEditor

save project

parent d8e8e477
Showing with 2 additions and 2 deletions
...@@ -10,13 +10,13 @@ class Note(): # 便签、笔记 ...@@ -10,13 +10,13 @@ class Note(): # 便签、笔记
self.root = tkinter.Tk() self.root = tkinter.Tk()
self.root.geometry('300x340+1000+200') self.root.geometry('300x340+1000+200')
self.root.title("我的便签-待办事项") self.root.title("我的便签-待办事项")
self.root.resizable(width=1, height=1) self.root.resizable(width=False, height=False)
self.back = tkinter.PhotoImage(file = "bg.png") self.back = tkinter.PhotoImage(file = "bg.png")
def show(self): # 布置窗口界面 def show(self): # 布置窗口界面
self.can = tkinter.Canvas(self.root, width = 300, height = 340, bg = "lightblue") self.can = tkinter.Canvas(self.root, width = 300, height = 340, bg = "lightblue")
self.can.create_image(0, 0, image = self.back, anchor = NW) self.can.create_image(0, 0, image = self.back, anchor = NW)
self.can.place(x = 0, y = 0) self.can.place(x = 0, y = 0)
self.y = 20 self.y = 20
for info in alist: for info in alist:
self.can.create_text(40, self.y, text = info, anchor = W, fill = "red") self.can.create_text(40, self.y, text = info, anchor = W, fill = "red")
......
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