parent
758ed91f20
commit
34969a9d04
@ -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()
|
Loading…
Reference in new issue