Commit 81fcea6f by BellCodeEditor

auto save

parent 80eb85f1
Showing with 12 additions and 4 deletions
...@@ -11,7 +11,7 @@ class Note(): # 便签、笔记 ...@@ -11,7 +11,7 @@ class Note(): # 便签、笔记
self.root.title("我的便签-待办事项") self.root.title("我的便签-待办事项")
self.root.resizable(width=False, height=False) self.root.resizable(width=False, height=False)
self.bg_img = tkinter.PhotoImage(file="bg.png") self.bg_img = tkinter.PhotoImage(file="bg.png")
self.box = tkinter.PhotoImage(file="box.png")
def show(self): # 布置窗口界面 def show(self): # 布置窗口界面
# 画布 # 画布
self.canvas = tkinter.Canvas(self.root, width=300, height=340) self.canvas = tkinter.Canvas(self.root, width=300, height=340)
...@@ -32,6 +32,11 @@ class Note(): # 便签、笔记 ...@@ -32,6 +32,11 @@ class Note(): # 便签、笔记
font=("宋体", 11), anchor=W, fill='#FF9900') font=("宋体", 11), anchor=W, fill='#FF9900')
self.y += 30 self.y += 30
self.select=tkinter.Radiobutton(self.canvas,image=self.box,variable=self.v)
self.select.place(x=0,y=self.y)
self.val+=1
self.y+=30
def get_info(self): def get_info(self):
info = self.ent.get() info = self.ent.get()
self.ent.delete("0", END) self.ent.delete("0", END)
...@@ -41,7 +46,10 @@ class Note(): # 便签、笔记 ...@@ -41,7 +46,10 @@ class Note(): # 便签、笔记
anchor=W, fill='#FF9900') anchor=W, fill='#FF9900')
self.y += 30 self.y += 30
self.select=tkinter.Radiobutton(self.canvas,image=self.box,variable=self.v)
self.select.place(x= -0,y=self.y-15)
self.val+=1
self.y+=30
app = Note() app = Note()
app.show() app.show()
app.root.mainloop() app.root.mainloop()
......
{"admin": "admin", "python": "123456"} {"admin": "admin", "python": "123456", "ss": "1234567890", "sn": "1234567890"}
\ No newline at end of file \ 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