You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CustomGourmet/src/main_admin.py

28 lines
874 B

import tkinter as tk
class logIn:
def __init__(self):
self.t=tk.Tk()
self.t.geometry("524x804+600+0")
self.t.title("登录管理员系统")
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=130,y=390)
t2.select_clear()
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()
x=admin()
class admin:
def __init__(self):
t=tk.Tk()
t.geometry("500x300+600+400")
t.mainloop()
start=logIn()