Advertisement
WhineyMonkey10

Untitled

Nov 28th, 2022
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. def admin():
  2. root = customtkinter.CTk()
  3. root.geometry("1000x500")
  4. root.title("🍪 Admin Panel 🍪")
  5.  
  6. frame = customtkinter.CTkFrame(master=root)
  7. frame.pack(pady=20, padx=20, fill="both", expand=True)
  8.  
  9. window = customtkinter.CTkLabel(master=frame, text="🍪 Administrator Panel 🍪")
  10. window.pack(pady=12, padx=10)
  11.  
  12. username = customtkinter.CTkEntry(master=frame, placeholder_text="Username")
  13. password = customtkinter.CTkEntry(master=frame, placeholder_text="Password (optional)")
  14. deluser = customtkinter.CTkButton(master=frame, text="Delete User", command=lambda: functions.admin.delete(username, response))
  15. adduser = customtkinter.CTkButton(master=frame, text="Add User", command=lambda: functions.admin.add(username, password, response))
  16. detailsuser = customtkinter.CTkButton(master=frame, text="Get User Details", command=lambda: functions.admin.get(username, response))
  17. userid = customtkinter.CTkButton(master=frame, text="Get User ID", command=lambda: functions.admin.getId(username, response))
  18. response = customtkinter.CTkLabel(master=frame, text="")
  19.  
  20. deluser.pack(pady=10, padx=10)
  21. adduser.pack(pady=10, padx=10)
  22. detailsuser.pack(pady=10, padx=10)
  23. userid.pack(pady=10, padx=10)
  24. username.pack(pady=10, padx=10)
  25. password.pack(pady=10, padx=10)
  26. response.pack(pady=10, padx=10)
  27.  
  28. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement