From 34969a9d04839a0fa9c10c1857a51318400c60ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=AB=E6=9D=BE=E9=9C=96?= <1064268333@qq,com> Date: Sun, 10 Sep 2023 02:11:23 +0800 Subject: [PATCH] update --- src/1.txt | 0 src/admin.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) delete mode 100644 src/1.txt create mode 100644 src/admin.py diff --git a/src/1.txt b/src/1.txt deleted file mode 100644 index e69de29..0000000 diff --git a/src/admin.py b/src/admin.py new file mode 100644 index 0000000..4270cbc --- /dev/null +++ b/src/admin.py @@ -0,0 +1,29 @@ +import tkinter as tk + +class logIn: + def __init__(self): + self.t=tk.Tk() + self.t.geometry("600x975+600+50") + self.t.title("登录管理员系统") + file=tk.PhotoImage(file="C:\\Users\\yaoyao\\Desktop\\2.png") + img=tk.Canvas(self.t,width=600,height=975) + img.create_image(300,487.5,image=file) + img.pack() + t1=tk.Entry(self.t,width=40) + t1.place(x=140,y=500) + t2=tk.Entry(self.t,width=40) + t2.place(x=140,y=450) + t2.select_clear() + file2=tk.PhotoImage(file="C:\\Users\\yaoyao\\Desktop\\login1.png") + b=tk.Button(self.t,image=file2) + b.place(x=230,y=550) + self.t.mainloop() + def log(self): + self.t.destroy() + x=admin() +class admin: + def __init__(self): + t=tk.Tk() + t.geometry("500x300+600+400") + t.mainloop() +start=logIn() \ No newline at end of file