master
莫松霖 1 year ago
parent 1aba798600
commit 43ad7d1396

Binary file not shown.

@ -3,20 +3,19 @@ import tkinter as tk
class logIn:
def __init__(self):
self.t=tk.Tk()
self.t.geometry("600x975+600+50")
self.t.geometry("524x804+600+0")
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)
file=tk.PhotoImage(file="C:\\Users\\yaoyao\\Desktop\\rjgc2.png")
img=tk.Canvas(self.t,width=524,height=804)
img.create_image(262,402,image=file)
img.place(x=0,y=0)
t2=tk.Entry(self.t,width=40)
t2.place(x=140,y=450)
t2.place(x=130,y=390)
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)
file2=tk.PhotoImage(file="C:\\Users\\yaoyao\\Desktop\\login5.png")
b=tk.Button(self.t,image=file2,relief="raised",bg="#00afaf",activebackground="#000f0f")
b.place(x=200,y=440)
self.t.mainloop()
def log(self):
self.t.destroy()

Loading…
Cancel
Save