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

Binary file not shown.

@ -3,20 +3,19 @@ import tkinter as tk
class logIn: class logIn:
def __init__(self): def __init__(self):
self.t=tk.Tk() self.t=tk.Tk()
self.t.geometry("600x975+600+50") self.t.geometry("524x804+600+0")
self.t.title("登录管理员系统") self.t.title("登录管理员系统")
file=tk.PhotoImage(file="C:\\Users\\yaoyao\\Desktop\\2.png") file=tk.PhotoImage(file="C:\\Users\\yaoyao\\Desktop\\rjgc2.png")
img=tk.Canvas(self.t,width=600,height=975) img=tk.Canvas(self.t,width=524,height=804)
img.create_image(300,487.5,image=file) img.create_image(262,402,image=file)
img.pack() img.place(x=0,y=0)
t1=tk.Entry(self.t,width=40)
t1.place(x=140,y=500)
t2=tk.Entry(self.t,width=40) t2=tk.Entry(self.t,width=40)
t2.place(x=140,y=450) t2.place(x=130,y=390)
t2.select_clear() t2.select_clear()
file2=tk.PhotoImage(file="C:\\Users\\yaoyao\\Desktop\\login1.png") file2=tk.PhotoImage(file="C:\\Users\\yaoyao\\Desktop\\login5.png")
b=tk.Button(self.t,image=file2) b=tk.Button(self.t,image=file2,relief="raised",bg="#00afaf",activebackground="#000f0f")
b.place(x=230,y=550) b.place(x=200,y=440)
self.t.mainloop() self.t.mainloop()
def log(self): def log(self):
self.t.destroy() self.t.destroy()

Loading…
Cancel
Save