Commit 9b803681 by BellCodeEditor

save project

parent d092c763
Showing with 9 additions and 4 deletions
......@@ -15,8 +15,8 @@ class Note(): # 便签、笔记
def show(self): # 布置窗口界面
self.background = tkinter.Canvas(self.root,width=500,height=650,bg='lightblue')
self.background.create_image(50,10,image=self.bg_img,anchor=NW)
self.background.place(x=-50,y=-35)
self.background.create_image(0,0,image=self.bg_img,anchor=NW)
self.background.place(x=0,y=0)
# 输入框
self.ent = tkinter.Entry(self.root, show=None,
font=('宋体', 13), bg="snow", width=25)
......@@ -25,10 +25,14 @@ 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.y=20
for info in alist:
self.background.create_text(40,self.y,text=info,font=('宋体',14),anchor=W,fill="#FF3333")
self.y+=30
def get_info(self):
pass
app = Note()
app.show()
app.root.mainloop()
\ No newline at end of file
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