Commit 98fd576f by BellCodeEditor

save project

parent d342feb7
Showing with 10 additions and 6 deletions
......@@ -5,7 +5,7 @@ import json
with open("user.txt", "r", encoding="utf-8") as f:
info = f.read()
users = json.loads(info)
class N
def login_to_reg(): # 登录界面转注册界面
app_login.root.destroy()
global app_reg
......
......@@ -11,7 +11,7 @@ class Note(): # 便签、笔记
self.root.title("我的便签-待办事项")
self.root.resizable(width=False, height=False)
self.bg_img = tkinter.PhotoImage(file="bg.png")
self.box=PhotoImage(file="box.png")
def show(self): # 布置窗口界面
# 画布
self.canvas = tkinter.Canvas(self.root, width=300, height=340)
......@@ -25,13 +25,17 @@ 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.var=0
self.v=IntVar()
self.y = 20
for info in alist:
self.canvas.create_text(40, self.y, text=info,
font=("宋体", 11), anchor=W, fill='#FF9900')
self.select=tkinter.Radiobutton(self.canvas,image=self.box,
value=self.var,variable=self.v)
self.select.place(x=0,y=self.y)
self.var=self.var+1
self.y += 30
def get_info(self):
info = self.ent.get()
self.ent.delete("0", END)
......
{"admin": "admin", "python": "123456"}
\ No newline at end of file
{"admin": "admin", "python": "123456", "3": "3", "33": "33"}
\ 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