Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def admin():
- root = customtkinter.CTk()
- root.geometry("1000x500")
- root.title("🍪 Admin Panel 🍪")
- frame = customtkinter.CTkFrame(master=root)
- frame.pack(pady=20, padx=20, fill="both", expand=True)
- window = customtkinter.CTkLabel(master=frame, text="🍪 Administrator Panel 🍪")
- window.pack(pady=12, padx=10)
- username = customtkinter.CTkEntry(master=frame, placeholder_text="Username")
- password = customtkinter.CTkEntry(master=frame, placeholder_text="Password (optional)")
- deluser = customtkinter.CTkButton(master=frame, text="Delete User", command=lambda: functions.admin.delete(username, response))
- adduser = customtkinter.CTkButton(master=frame, text="Add User", command=lambda: functions.admin.add(username, password, response))
- detailsuser = customtkinter.CTkButton(master=frame, text="Get User Details", command=lambda: functions.admin.get(username, response))
- userid = customtkinter.CTkButton(master=frame, text="Get User ID", command=lambda: functions.admin.getId(username, response))
- response = customtkinter.CTkLabel(master=frame, text="")
- deluser.pack(pady=10, padx=10)
- adduser.pack(pady=10, padx=10)
- detailsuser.pack(pady=10, padx=10)
- userid.pack(pady=10, padx=10)
- username.pack(pady=10, padx=10)
- password.pack(pady=10, padx=10)
- response.pack(pady=10, padx=10)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement