Commit 5853347e by BellCodeEditor

save project

parent e6632e70
Showing with 5 additions and 2 deletions
......@@ -13,7 +13,7 @@ class Note(): # 便签、笔记
self.bg_img = tkinter.PhotoImage(file="duck.png")
def show(self): # 布置窗口界面
# 输入框
self.Canvas=tkinter.Canvas(self.root,width=300, height=400,bg="lightblue")
self.Canvas.create_image(0,0.,image=self.bg_img,anchor=NW)
self.Canvas.place(x=0, y=0)
......@@ -24,7 +24,10 @@ class Note(): # 便签、笔记
self.but = tkinter.Button(self.root,text='添加',font=('宋体',12),
bg="lightblue", width=5, command=self.get_info)
self.but.place(x=240, y=305)
self.a=20
for into in alist:
self.Canvas.create_text(40,self.a,text=into,font=('宋体',12),anchor=NW,fill="#FF9900")
self.a+=30
def get_info(self):
pass
app = Note()
......
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