Commit d0629861 by BellCodeEditor

save project

parent 39bdb55e
Showing with 7 additions and 2 deletions
...@@ -11,6 +11,9 @@ class Note(): # 便签、笔记 ...@@ -11,6 +11,9 @@ class Note(): # 便签、笔记
self.root.resizable(width=False, height=False) self.root.resizable(width=False, height=False)
def show(self): # 布置窗口界面 def show(self): # 布置窗口界面
#画布
self.canvas = tkinter.Canvas(slef.root,width=300,height=340,bg="lightblue")
self.canvas.create_image(0,0,image=bg_image,anchor = NW)
# 输入框 # 输入框
self.ent = tkinter.Entry(self.root, show=None, self.ent = tkinter.Entry(self.root, show=None,
font=('宋体', 13), bg="snow", width=25) font=('宋体', 13), bg="snow", width=25)
...@@ -23,6 +26,9 @@ class Note(): # 便签、笔记 ...@@ -23,6 +26,9 @@ class Note(): # 便签、笔记
def get_info(self): def get_info(self):
pass pass
bg_image = tkinter.PhotoImage("bg.png")
box_image = tkinter.PhotoImage("box.png")
duck_image = tkinter.PhotoImage("duck.png")
app = Note() app = Note()
app.show() app.show()
app.root.mainloop() 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